/ Published in: PHP
Expand |
Embed | Plain Text
function cleanGlobal($global_array, $arg, $specialchars = true, $default = null) { if($specialchars) { } else { return $global_array[$arg]; } } else { return $default; } }
Comments
Subscribe to comments
You need to login to post a comment.

Call like this : $myvar = cleanGlobal($_GET, 'myvar');