note 102585 deleted from function.get-browser by danbrown
[email protected] Wed, 23 Feb 2011 07:58:01 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: daniel at example dot com
----
If you are having problems with the preg_match_all put a P after the <?. For example the pattern from ruudrp at live dot nl would change from
$pattern = '#(?<browser>' . join('|', $known) .
')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';
to this
$pattern = '#(?P<browser>' . join('|', $known) .
')[/ ]+(?P<version>[0-9.|a-zA-Z.]*)#';