note 26900 modified in function.strrchr by vincent

From: Date: Sun, 07 Sep 2003 11:43:26 +0000
Subject: note 26900 modified in function.strrchr by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55567@lists.php.net to get a copy of this message
this functions returns the name of the current directory. <?php function currentd() { return substr(strrchr(pwd, '/'), 1); } ?> --was-- FIXED: function currentd() { return substr(strrchr(pwd, '/'), 1); } http://www.php.net/manual/en/function.strrchr.php

« previous php.notes (#55567) next »