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
>


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

Reply via email to