$agent = getenv("HTTP_USER_AGENT"); if(mb_ereg("MSIE", $agent){ //IEã®æã®å¦ç }elseif(mb_ereg("Firefox", $agent){ //Firefoxã®æã®å¦ç } ä¸è¨ã®ããã«æ£è¦è¡¨ç¾ã§ãã©ã¦ã¶ããã§ãã¯ã§ãã¾ãã ä»ã¾ã§ã¯eregå¦çã§ã§ãã¦ãããã©ãPHP5.3以éã®å ´åã¨ã©ã¼ã«ãªãã®ã§mb_eregã使ç¨ãã¾ãã ãã£ã¨è©³ç´°ã«åãããå ´åã¯ãã¼ã¸ã§ã³ãæ¸ãã¨ããã§ãã IE6ã®ã¿é©ç¨ããã°ããã¯âMSIE 6.0â³ã¨ãã ã¡ãªã¿ã«getenvã§HTTP_USER_AGENTãæå®ããã¨ä¸è¨ã®ãããªæååãè¿ã£ã¦ãã¾ãã Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.8) Gecko/20100722 Firefox/
{{#tags}}- {{label}}
{{/tags}}