Hello all,
I am looking for the most efficient way to parse a document root.
example:
$string = /www/a/b/c/d/e.php
I need the last part of the string (e.php)
I have accomplished it by
list ($variable, etc, etc ......) = explode("/", $string);
My question, is there a more efficient way to do this? And this is a set format for the path, but I would really like to see a way that would grab the last part of the string no matter how many '/' I have.
thanks in advance,
Alex