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

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

        return array_slice($atoms, $index, $length);
    }
public function sliceNameAtoms ( $ index , $ length = null ) { $ atoms = $ this -> nameAtoms ( ) ; if ( null === $ length ) { $ length = count ( $ atoms ) ; } return array_slice ( $ atoms , $ index , $ length ) ; }
Get a subset of this path's name atoms.

@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 name atoms.
Get a subset of this path s name atoms .