note 57566 deleted from function.basename by nlopess

From: Date: Sun, 09 Oct 2005 16:53:22 +0000
Subject: note 57566 deleted from function.basename by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-96753@lists.php.net to get a copy of this message
Note Submitter: abcentee at gmail one_dot com ---- The example 1 on the top (above the user contributed notes) contains an error. It should be read as following: <?php $path = "/home/httpd/html/index.php"; $file = basename($path); // $file is set to "index" $file = basename($path, ".php"); // $file is set to "index.php" ?>

« previous php.notes (#96753) next »