Getting just the filename

From: Date: Thu, 28 Mar 2002 19:49:10 +0000
Subject: Getting just the filename
Groups: php.general 
Request: Send a blank email to php-general+get-90584@lists.php.net to get a copy of this message
Hello, Is there a simple way of getting just the filename from strings which give the filename along with the path. For example, I need "test.txt" from "c:\myfiles\test.txt" It should also work with the / character, in other words, give "test.txt" from "/htdocs/myfiles/test.txt" With Regards, Sharat _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com

« previous php.general (#90584) next »