note 62579 deleted from function.include by aidan

From: Date: Sat, 15 Apr 2006 16:21:50 +0000
Subject: note 62579 deleted from function.include by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108143@lists.php.net to get a copy of this message
Note Submitter: torokAlpar at gmail dot com ---- Hi i had a problem with passing values to the included script. Using the $_GET[] doesn't work swo i'we comed up with a function witch returns with a same array as $_GET[] <? function get() { $uri=$_SERVER['REQUEST_URI']; $uri=explode('?',$uri); $uri=explode('&',$uri[1]); $er=array(); foreach ($uri as $egy) { $egy=explode('=',$egy); $er=$er+array($egy[0] => $egy[1]); } return $er; } ?> hop it's usfull us it like $get=get(); adn you have the $_GET[] array :)

« previous php.notes (#108143) next »