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

From: Date: Sun, 06 Mar 2005 14:02:12 +0000
Subject: RE: [PHP] Re: check to see if a string contains sudden elements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210092@lists.php.net to get a copy of this message
$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!

« previous php.general (#210092) next »