Код: Выделить всё
if (count($this->keys) && $this->action == 'add') {
// Extract the last key
$last = $this->keys[count($this->keys) - 1];
// Are we trying to add stuff?
if ($last == $this->add_key) {
$this->data = $this->set_data($this->default, $this->keys);
}
}
Я не знаю, что попробовать. PHP не моя сильная сторона.
Подробнее здесь: https://stackoverflow.com/questions/776 ... nts-counta
Мобильная версия