UNB Components Code Reference

UnbEnvironment::DeSlashArray method

Applies stripslashes() to each array key and value, recursing into sub-arrays.

private static function UnbEnvironment::DeSlashArray (&$a);

Parameters

–  in/out

(array) Array to be processed

Remarks

This is particularly useful when PHP's option magic_quote_gpc is enabled which is generally a bad idea because it will mess up input from the user. The array passed to this function is modified in-place, so there is no return value and little data gets copied around.

Member of class: UnbEnvironment

Implementation file: environment.class.php, line 132

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.