public function getPathParts($path)
    {
        $path = preg_replace('/\[/', '->[', $path);
        if (preg_match('/^->/', $path)) {
            $path = substr($path, 2);
        }

        return explode('->', $path);
    }
public function getPathParts($path)
    {
        $path = preg_replace('/\[/', '->[', $path);
        if (preg_match('/^->/', $path)) {
            $path = substr($path, 2);
        }

        return explode('->', $path);
    }
public function getPathParts ( $ path ) { $ path = preg_replace ( '/\[/' , '->[' , $ path ) ; if ( preg_match ( '/^->/' , $ path ) ) { $ path = substr ( $ path , 2 ) ; } return explode ( '->' , $ path ) ; }
Breaks a path expression into an array used
for navigating a path.

@param $path
@return array
Breaks a path expression into an array used for navigating a path .