Stash::_list_row_explode PHP Méthode

_list_row_explode() private méthode

private _list_row_explode ( string $string ) : array
$string string The string to explode
Résultat array The exploded array
    private function _list_row_explode($string)
    {
        $array = explode($this->_list_row_delimiter, $string);
        $new_array = array();
        foreach ($array as $key => $val) {
            $val = explode($this->_list_row_glue, $val);
            if (isset($val[1])) {
                // replace our null placeholder with an empty string
                if ($val[1] === $this->_list_null) {
                    $val[1] = '';
                }
                $new_array[$val[0]] = $val[1];
            }
        }
        return $new_array;
    }