note 18435 deleted from function.substr by irc-html

From: Date: Tue, 22 Jan 2002 23:55:19 +0000
Subject: note 18435 deleted from function.substr by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25716@lists.php.net to get a copy of this message
Here is an easy way to return the filename from a PATH. <? $path="/usr/home/user/Filename.txt"; $fname = substr($path, (strrpos($path, "/"))+1, strlen($path)); print("Filename: $fname"); # will return Filename.txt ?>

« previous php.notes (#25716) next »