Нужна помощь в преобразовании устаревшей функции create_function() в PHP 7.2. ⇐ Php
-
Anonymous
Нужна помощь в преобразовании устаревшей функции create_function() в PHP 7.2.
Would anyone be able to update this deprecated piece of code for PHP 7.2. I have found many similar questions and answers, but can't figure out how to convert this particular piece of code.
array_walk($_REQUEST['categories'], create_function('&$c', '$c = "-" . $c;'));
Источник: https://stackoverflow.com/questions/670 ... in-php-7-2
Would anyone be able to update this deprecated piece of code for PHP 7.2. I have found many similar questions and answers, but can't figure out how to convert this particular piece of code.
array_walk($_REQUEST['categories'], create_function('&$c', '$c = "-" . $c;'));
Источник: https://stackoverflow.com/questions/670 ... in-php-7-2
Мобильная версия