Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

codeigniter sanitize array in 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;
    }
 
PREVIOUS NEXT
Tagged: #codeigniter #sanitize #array #php
ADD COMMENT
Topic
Name
5+2 =