On Thursday 10 July 2003 20:03, Matt Palermo wrote:
> Anyone know how I can stip off the end of a folder location, so that it
> will be a folder in the next level up?  I want to turn something like this:
>
> /path/to/folder/MyFolder/
>
> into somthing like this:
>
> /path/to/folder/
>
> I just need to strip off the last folder and that is it.  Can anyone help
> me out?  I appreciate it.  Thanks.

explode(), array_pop(), implode()

or strrpos(), substr()

are just some of the ways this can be done.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"sic transit discus mundi"
(From the System Administrator's Guide, by Lars Wirzenius)
*/


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

Reply via email to