public static function cleanValue($value)
    {
        if (is_array($value)) {
            $new_value = [];

            foreach ($value as $k => $v) {
                $new_value[$k] = self::cleanValue($v);
            }

            return $new_value;
        }

        return stripslashes($value);
    }
public static function cleanValue($value)
    {
        if (is_array($value)) {
            $new_value = [];

            foreach ($value as $k => $v) {
                $new_value[$k] = self::cleanValue($v);
            }

            return $new_value;
        }

        return stripslashes($value);
    }
public static function cleanValue ( $ value ) { if ( is_array ( $ value ) ) { $ new_value = [ ] ; foreach ( $ value as $ k => $ v ) { $ new_value [ $ k ] = self :: cleanValue ( $ v ) ; } return $ new_value ; } return stripslashes ( $ value ) ; }
Clean details on value

@param   mixed $value
@return  mixed $value
Clean details on value