Using this technique you can easily filter user submitted data (post data) easily in PHP by calling a call back function with array_map() function of PHP.
Ignorance of the built-in PHP filtering functions aside, the author comments on this post encouraging users to use extract() on $_POST. Please do not follow this advice. If you're going to do that, you might as well downgrade to PHP 4 and enable register_globals.
Comments
nyuhuhuu replied ago:
Hey guys, PHP has builtin input data filtering!
http://php.net/filter
isnoop replied ago:
Ignorance of the built-in PHP filtering functions aside, the author comments on this post encouraging users to use extract() on $_POST. Please do not follow this advice. If you're going to do that, you might as well downgrade to PHP 4 and enable register_globals.
Voters For This Link (7)
Voters Against This Link (7)