I have a array, which comes from $_POST[] and can have other arrays in it as values, like:
$_POST[]
array( \'title\' => \'Title\', \'data\' => ar
Just use the filter extension.
/* prevent XSS. */ $_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING); $_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);
This will sanitize your $_GET and $_POST.
$_GET
$_POST