Exemplo n.º 1
0
 protected static function stripslashesRecursive(array $array)
 {
     foreach ($array as $k => $v) {
         if (is_string($v)) {
             $array[$k] = stripslashes($v);
         } else {
             if (is_array($v)) {
                 $array[$k] = BaseController::stripslashesRecursive($v);
             }
         }
     }
     return $array;
 }