note 102585 deleted from function.get-browser by danbrown

From: Date: Wed, 23 Feb 2011 15:58:01 +0000
Subject: note 102585 deleted from function.get-browser by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177256@lists.php.net to get a copy of this message
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.]*)#';

« previous php.notes (#177256) next »