Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




add_magic_quotes [ WordPress Function ]

add_magic_quotes ( $array )
Parameters:
  • (array) $array Array to used to walk while sanitizing contents.
Returns:
  • (array) Sanitized $array.
Defined at:



Walks the array while sanitizing the contents.

Source


<?php
function add_magic_quotes$array ) {
    foreach ( (array) 
$array as $k => $v ) {
        if ( 
is_array$v ) ) {
            
$array[$k] = add_magic_quotes$v );
        } else {
            
$array[$k] = addslashes$v );
        }
    }
    return 
$array;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics