lib\pf\exceptions\error
[8192] Unknown error: The each() function is deprecated. This message will be suppressed on further calls
/home/nk7srx68udff/dev.carzap.lt/lib/pf/config/config.php (Line 73)
Stack trace (4)↑config.php (73)↑
app.php (63)↓pf.php (107)↓index.php (22)↓
Included files (24)↓Loaded classes (18)↓Include path (2)↓Event listeners (0)↓Profiling (1)↓GET (0)↓POST (0)↓COOKIE (0)↓SESSION (0)↓ENV (6)↓SERVER (43)↓PHP Info (7.3.33)↓ /home/nk7srx68udff/dev.carzap.lt/lib/pf/config/config.php
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 * * @param mixed $key ключ параметра * может быть строкой или массивом * если значение имеет раздел, тогда ключ принимается в виде array('section'=>'key') * @return mixed зависит от типа параметра, NULL если параметр не найден */ public function get($key) { if (is_array($key)) { // параметр с принадлежностью разделу // получаем название раздела и ключ параметра list($section, $key) = each($key); // проверяем раздел if (array_key_exists($section, $this->arr)) { if (!is_array($this->arr[$section])) { return NULL; } // получем значение параметра return arr::get($this->arr[$section], $key); } } // параметр без принадлежности разделу |
| each( |
[0] => Array
(
[db] => pdo
) |
| ) |
