note 20737 rejected from function.eregi by sander
| From: | sander@php.net | Date: | Mon, 15 Apr 2002 14:18:12 +0000 |
| Subject: | note 20737 rejected from function.eregi by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29364@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?!?