If your using path info, they are already in the / form dude 
somesite.com/file.php/val1/val2/val3 , everything from the / after file.php is in $_SERVER['PATH_INFO'], look below:
PHP Code:
// url is somesite.com/file.php/val1/val2/val3
$qStr = explode( '/', $_SERVER['PATH_INFO'] );
$val1 = $qStr[1];
$val2 = $qStr[2];
$val3 = $qStr[3];
// or you can do it like this
list( , $val1, $val2, $val3 ) = explode( '/', $_SERVER['PATH_INFO'] );
Note, it IS supposed to be list( , $val1... First value is going to be blank, therefor a dummy, no need to assin it to a variable.
-Eric
Bookmarks