[PHP] How would u strip the path?

2006-01-24 Thread Nicholas Couloute

how would u strip the path off of a variable? say that:
$bob = /home/s2music/b/bob.mp3;
I want bob just to be bob.mp3!
how would I do that?
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How would u strip the path?

2006-01-24 Thread Paul Scott
On Tue, 2006-01-24 at 04:01 -0500, Nicholas Couloute wrote:
 how would u strip the path off of a variable? say that:

http://za2.php.net/manual/en/function.basename.php

basename it!

--Paul

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php