Method: browser::iphone

Checks if the user agent string is from an iPhone

Info

Syntax

browser::iphone($ua=null)

Parameters

Return (boolean)

True: iPhone, false: not an iPhone

Example


if(browser::mobile()) echo 'You are browsing with an iPhone';