[PHP] Re: Derive bottom-most dir from string???

2003-02-20 Thread Shawn McKenzie
Sorry... Think I was over complicating it. Seems the last element of $somearray from $somearray = explode(/, $somepath); will work well. Thanks! Shawn Shawn McKenzie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there an easy way to derive the bottom-most

[PHP] Re: Derive bottom-most dir from string???

2003-02-20 Thread Philip Hallstrom
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