Detect Chrome with PHP

We all have trouble sometimes with the render engine of Google Chrome, so here is a PHP way to identify it, using the HTTP_USER_AGENT.

<?php
$mystring = $_SERVER['HTTP_USER_AGENT'];
$findme   = 'Chrome';
$pos = strpos($mystring, $findme);
if ($pos === false) {
   echo "stuff to be seen in all other browsers";
} else {
   echo "stuff to be seen in Chrome";
}
?>

Feel free to use and improve this.

Whisper something about this