public static function cleanFields(array &$array)
    {
        foreach ($array as $key => $val) {

            // Handle arrays with more than 1 level
            if (is_array($val)) {
                self::cleanFields($val);
                continue;
            } elseif (strlen($val) == 0) {
                $array[$key] = 'null';
            } else {
                $array[$key] = "'" . self::cleanValue($val) . "'";
            }
        }
    }
public static function cleanFields(array &$array)
    {
        foreach ($array as $key => $val) {

            // Handle arrays with more than 1 level
            if (is_array($val)) {
                self::cleanFields($val);
                continue;
            } elseif (strlen($val) == 0) {
                $array[$key] = 'null';
            } else {
                $array[$key] = "'" . self::cleanValue($val) . "'";
            }
        }
    }
public static function cleanFields ( array & $ array ) { foreach ( $ array as $ key => $ val ) { // Handle arrays with more than 1 level if ( is_array ( $ val ) ) { self :: cleanFields ( $ val ) ; continue ; } elseif ( strlen ( $ val ) == 0 ) { $ array [ $ key ] = 'null' ; } else { $ array [ $ key ] = "'" . self :: cleanValue ( $ val ) . "'" ; } } }
This function will apply the `cleanValue` function to an associative
array of data, encoding only the value, not the key. This function
can handle recursive arrays. This function manipulates the given
parameter by reference.

@see cleanValue
@param array $array
The associative array of data to encode, this parameter is manipulated
by reference.
This function will apply the cleanValue function to an associative array of data encoding only the value not the key . This function can handle recursive arrays . This function manipulates the given parameter by reference .