Re: Derive bottom-most dir from string???
| From: | Philip Hallstrom | Date: | Thu, 20 Feb 2003 20:34:54 +0000 |
| Subject: | Re: Derive bottom-most dir from string??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136412@lists.php.net to get a copy of this message | ||
see the basename() function
On Thu, 20 Feb 2003, Shawn McKenzie wrote:
> Is there an easy way to derive the bottom-most directory from a string
> containing a path?
>
> Example: $somepath = "html/testsite/templates/shopping";
>
> Becomes: "shopping"
>
> TIA
> -Shawn
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>