Posted by Toby Inkster on 05/29/06 14:35
frizzle wrote:
> $_SERVER['QUERY_STRING'] = '/artists//mtv_unplugged/'
$array = explode('/', $_SERVER['QUERY_STRING']);
array_shift($array);
for ($i=0;$i<4;$i++)
if (!strlen($array[$i]))
$array[$i] = 'NULL';
> $array[0] => artists
> $array[1] => NULL
> $array[2] => mtv_unplugged
> $array[3] => NULL
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|