if (strpos($_SERVER['HTTP_USER_AGENT'],'zzzz') == false) { $html = ' html code here '; return $html; }