public function sliceAtoms($index, $length = null)
    {
        $atoms = $this->atoms();
        if (null === $length) {
            $length = count($atoms);
        }

        return array_slice($atoms, $index, $length);
    }
public function sliceAtoms($index, $length = null)
    {
        $atoms = $this->atoms();
        if (null === $length) {
            $length = count($atoms);
        }

        return array_slice($atoms, $index, $length);
    }
public function sliceAtoms ( $ index , $ length = null ) { $ atoms = $ this -> atoms ( ) ; if ( null === $ length ) { $ length = count ( $ atoms ) ; } return array_slice ( $ atoms , $ index , $ length ) ; }
Get a subset of the atoms of this path.

@param integer      $index  The index of the first atom.
@param integer|null $length The maximum number of atoms.

@return array<integer,string> An array of strings representing the subset of path atoms.
Get a subset of the atoms of this path .