| user_agent ( tests, accept ) | ใช้ตรวจสอบว่า เป็น สิ่งที่กำหนด ใช่หรือไม่ |
|---|
method:user_agent ( tests, accept );
return type:boolean
special:static
content:ใช้ตรวจสอบว่า เป็น สิ่งที่กำหนด ใช่หรือไม่
example:if ( Kohana::user_agent ( "is_browser", "IE" ) ) { echo "This is IE browser."; }
comment:ตัวแปร key ได้แก่ is_browser, is_mobile, is_robot, accept_lang, accept_charset