Codeigniter дезинфицирует массив в PHP
// THIS HELPER METHOD SANITIZES AN ARRAY FIELDS
function sanitize_array($array)
{
$sanitized_array = array();
foreach ($array as $key => $item) {
$sanitized_array[$key] = sanitize($item);
}
return $sanitized_array;
}
Codelone