public function fieldNameFilter($str)
    {
        $path = explode('.', rtrim($str, '.'));

        return array_shift($path) . ($path ? '[' . implode('][', $path) . ']' : '');
    }
public function fieldNameFilter($str)
    {
        $path = explode('.', rtrim($str, '.'));

        return array_shift($path) . ($path ? '[' . implode('][', $path) . ']' : '');
    }
public function fieldNameFilter ( $ str ) { $ path = explode ( '.' , rtrim ( $ str , '.' ) ) ; return array_shift ( $ path ) . ( $ path ? '[' . implode ( '][' , $ path ) . ']' : '' ) ; }
Filters field name by changing dot notation into array notation.

@param  string $str

@return string
Filters field name by changing dot notation into array notation .