19-03-2016, 07:44 PMSozin Wrote:02-03-2016, 11:01 PMivoivo Wrote: good lesson
How do I filter php code in $_POST?
Do you mean all values? Then:
[pre]
array_walk( $_POST, function( &$value, $key ){
$value = filter_function( $value ); // The filter function can be intval, floatval, or anything.. even a custom function will do.
});
[/pre]
Things to look into after considering the above code:
http://php.net/array_walk
http://php.net/manual/en/functions.anonymous.php
Fuck you, your too good with your shit :D