in reply to Re^2: extract file name from a dynamic path
in thread extract file name from a dynamic path
C<basename()> returns the last level of a filepath even if the last level is clearly directory. In effect, it is acting like C<pop()> for paths. This differs from C<fileparse()>'s behaviour. # Both return "bar" basename("/foo/bar"); basename("/foo/bar/");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: extract file name from a dynamic path
by alexm (Chaplain) on Sep 07, 2008 at 18:33 UTC |