note 40893 deleted from function.parse-str by nlopess
| From: | nlopess@php.net | Date: | Thu, 18 Mar 2004 13:49:55 +0000 |
| Subject: | note 40893 deleted from function.parse-str by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67014@lists.php.net to get a copy of this message | ||
Note Submitter: nomix25@hotmail.com
----
This is the valid format !
$str = "hgfh bf http://www.domainname.com?em=email@email.com
hgf hghg";
getparams($str);
function getparams($str)
{
$str = trim($str);
$str = parse_url($str);
$str = $str["query"];
$str = substr($str,0,strlen($str));
$str = explode(" ",$str);
$str = $str[0];
$str = parse_str($str);
return $em;
}