note 20737 added to function.eregi
| From: | magnus at v-maarja dot ee | Date: | Sun, 14 Apr 2002 20:40:28 +0000 |
| Subject: | note 20737 added to function.eregi | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29299@lists.php.net to get a copy of this message | ||
What i wanted to say was:
if(eregi("windows nt [0-9]{1,2}.[0-9]{1,3}",$HTTP_CLIENT,$match))
{
$os = $match[1];
$version = $match[2];
}
here's the catch:
if would be match[0] = "windows nt 5.0";
how do i make match[1] = "windows nt"; and match[2] = "5.0";
changing the eregi's pattern?!?
--
http://www.php.net/manual/en/function.eregi.php
http://master.php.net/manage/user-notes.php?action=edit+20737
http://master.php.net/manage/user-notes.php?action=delete+20737
http://master.php.net/manage/user-notes.php?action=reject+20737