I have a array, which comes from $_POST[] and can have other arrays in it as values, like:
$_POST[]
array( \'title\' => \'Title\', \'data\' => ar
Let's say we want to sanitize the $_POST array:
foreach($_POST as $k=>$v) {$_POST[$k] = htmlspecialchars($v);}
This simple. Isn't it?