Re: checking multiple URL parameters

From: Date: Thu, 16 Sep 2004 21:00:11 +0000
Subject: Re: checking multiple URL parameters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-196919@lists.php.net to get a copy of this message
From: "Gryffyn, Trevor" <TGryffyn@air-cargo-inc.com>
Regardless of how this script is called, is there, or is there not a function that will take that string and pull the values after the "?" and toss them into an associative array?
Yes, parse_url() to get the query string and then parse_str() to put it into an associative array. Only that's two functions and you asked for "a function", so the world may very well end if you use them. G'nite... ;) ---John Holmes...

« previous php.general (#196919) next »