note 99817 modified in function.preg-match-all by danbrown
| From: | danbrown@php.net | Date: | Thu, 09 Sep 2010 14:10:07 +0000 |
| Subject: | note 99817 modified in function.preg-match-all by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172407@lists.php.net to get a copy of this message | ||
For parsing queries with entities use:
<?php
preg_match_all("/(?:^|(?<=\&(?![a-z]+\;)))([^\=]+)=(.*?)(?:$|\&(?![a-z]+\;))/i",
$s, $m, PREG_SET_ORDER );
?>
--was--
For parsing queries with entities use:
preg_match_all(
"/(?:^|(?<=\&(?![a-z]+\;)))([^\=]+)=(.*?)(?:$|\&(?![a-z]+\;))/i",
$s, $m, PREG_SET_ORDER );
http://php.net/manual/en/function.preg-match-all.php