note 99824 deleted from tutorial.useful by danbrown

From: Date: Thu, 09 Sep 2010 14:07:27 +0000
Subject: note 99824 deleted from tutorial.useful by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172403@lists.php.net to get a copy of this message
Note Submitter: romulo8000 at gmail dot com ---- The follow if statement is more easily to understand. if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { echo 'Usando MSIE'; } if (strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox')) { echo 'Usando FireFox'; } strpos(); returns TRUE if found the string of second parameter in first array parameter or FALSE if it does not. That's just it.

« previous php.notes (#172403) next »