LotGDocker/lotgd-web/lotgd/lib/stripslashes_deep.php

11 lines
216 B
PHP
Raw Permalink Normal View History

2020-08-17 19:16:42 -04:00
<?php
function stripslashes_deep($input){
if (!is_array($input)) return stripslashes($input);
reset($input);
while (list($key,$val)=each($input)){
$input[$key] = stripslashes_deep($val);
}
return $input;
}
?>