classes/phing/system/io/PhingFile.php
public function getName()
    {
        // that's a lastIndexOf
        $index = ((($res = strrpos($this->path, self::$separator)) === false) ? -1 : $res);
        if ($index < $this->prefixLength) {
            return substr($this->path, $this->prefixLength);
        }

        return substr($this->path, $index + 1);
    }
public function getName()
    {
        // that's a lastIndexOf
        $index = ((($res = strrpos($this->path, self::$separator)) === false) ? -1 : $res);
        if ($index < $this->prefixLength) {
            return substr($this->path, $this->prefixLength);
        }

        return substr($this->path, $index + 1);
    }
public function getName ( ) { // that's a lastIndexOf $ index = ( ( ( $ res = strrpos ( $ this -> path , self :: $ separator ) ) === false ) ? - 1 : $ res ) ; if ( $ index < $ this -> prefixLength ) { return substr ( $ this -> path , $ this -> prefixLength ) ; } return substr ( $ this -> path , $ index + 1 ) ; }
Returns the name of the file or directory denoted by this abstract
pathname.  This is just the last name in the pathname's name
sequence.  If the pathname's name sequence is empty, then the empty
string is returned.

@return string The name of the file or directory denoted by this abstract
pathname, or the empty string if this pathname's name sequence
is empty
Returns the name of the file or directory denoted by this abstract pathname . This is just the last name in the pathname s name sequence . If the pathname s name sequence is empty then the empty string is returned .