With PHP, you can customize your scripts by executing specific blocks of code based on the browser. The example below shows how to display code that will only output if the browser is Google Chrome.Try the code below in various browsers; including Google Chrome.
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== false){ echo "This output will only display if the browser is Google Chrome"; } if (strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') != false){ echo "This output will only display if the browser is Google Chrome"; } if (strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') == true){ echo "This output will only display if the browser is Google Chrome"; }
© 2018 ALL Rights Reserved | Sitemap
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton