Method: browser::iphone
Checks if the user agent string is from an iPhone
Info
Syntax
browser::iphone($ua=null)
Parameters
- $ua (string) The user agent string
Return (boolean)
True: iPhone, false: not an iPhone
Example
if(browser::mobile()) echo 'You are browsing with an iPhone';