Method: browser::ios

Checks if the user agent string is from an iOS device

Info

Syntax

browser::ios($ua=null)

Parameters

Return (boolean)

True: iOS device, false: not an iOS device

Example


if(browser::mobile()) echo 'You are browsing with a fancy iOS device';