<?php $multidim_array = ['a' => [' \one ', ['b' => 'two\\', [['c' => 'thr\ee']]]]]; var_export($multidim_array); echo "\n"; $func = 'stripslashes'; if (function_exists($func)) { array_walk_recursive($multidim_array, function(&$v)use($func){$v = $func($v);}); var_export($multidim_array); } else { echo "not callable"; }
You have javascript disabled. You will not be able to edit any code.