note 21842 added to function.pathinfo

From: Date: Wed, 29 May 2002 05:10:11 +0000
Subject: note 21842 added to function.pathinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-31136@lists.php.net to get a copy of this message
This code is to work in index.php/var/var if(isset($PATH_INFO)) { $viewcode = explode('/', $PATH_INFO); $num = count($viewcode); if($num % 2 == 0) { $viewcode[] = ''; $num++; } for($i = 1; $i < $num; $i += 2) { $$viewcode[$i] = $viewcode[$i+1]; } } -- http://www.php.net/manual/en/function.pathinfo.php http://master.php.net/manage/user-notes.php?action=edit+21842 http://master.php.net/manage/user-notes.php?action=delete+21842 http://master.php.net/manage/user-notes.php?action=reject+21842

« previous php.notes (#31136) next »