note 9740 modified in function.preg-match by irc-html

From: Date: Fri, 18 Jan 2002 19:46:13 +0000
Subject: note 9740 modified in function.preg-match by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25063@lists.php.net to get a copy of this message
Also preg_match can be used to detect browsers. <? $browser_type = getenv("HTTP_USER_AGENT"); if (preg_match("/MSIE/i", "$browser_type")) { echo "Using MSIE."; ?> --was-- Also preg_match can be used to detect browsers. &lt;? $browser_type = getenv("HTTP_USER_AGENT"); if (preg_match("/MSIE/i", "$browser_type")) { echo "Using MSIE."; http://www.php.net/manual/en/function.preg-match.php

« previous php.notes (#25063) next »