Re: newbie: string manipulation

From: Date: Wed, 24 Apr 2002 20:40:18 +0000
Subject: Re: newbie: string manipulation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94449@lists.php.net to get a copy of this message
Try this: $file = "/usr/blah/doh/yuck/wow/abigfile.html"; $file = basename($file); It will returns abigfile.html That´s it Regards Alex At 16:04 24/4/2002 -0400, ROBERT MCPEAK wrote:
I need code that grabs the file at the end of a file path. I have this: /usr/blah/doh/yuck/wow/abigfile.html And would like to return this: abigfile.html Could somebody show me how to do this? Thank you! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#94449) next »