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;'));