Return to Snippet

Revision: 10559
at January 4, 2009 09:59 by xuanyan


Updated Code
function stripslashes_recursive($array)
{
    $array = is_array($array) ? array_map('stripslashes_recursive', $array) : stripslashes($array);

    return $array;
}

function addslashes_recursive($array)
{
    $array = is_array($array) ? array_map('addslashes_recursive', $array) : addslashes($array);

    return $array;
}

Revision: 10558
at January 4, 2009 09:56 by xuanyan


Initial Code
stripslashes_recursive

Initial URL

                                

Initial Description

                                

Initial Title
stripslashes_recursive and addslashes_recursive

Initial Tags
textmate

Initial Language
PHP