[thelist] PHP string manipulation

Aredridel aredridel at nbtsc.org
Thu Jun 26 18:26:53 CDT 2003


On Thu, 2003-06-26 at 16:58, Mark Joslyn wrote:
> I am having the hardest time writing a string manipulation that will take
> the following:
> 
> Directory_One/Directory_Two/FileName1.zip
> 
> or
> 
> Directory_One/Filename1.zip


dirname($var).'/' to get the dirname with trailing slash.
basename($var) to get the filename.

Ari



More information about the thelist mailing list