RE: Re: check to see if a string contains sudden elements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




$ret = explode('|', $_GET['id']);
if(count($ret) > 1) {
	$id = $ret[1];
} else {
	$id = $ret[0];
}

Suberb,
This indeed did the trick. Aargh I hate when things are this simple and I
just can't seem to find them...
Thx!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux