Method: browser::platform
Returns the platform
Info
Syntax
browser::platform($ua=null)
Parameters
- $ua (string) The user agent string
Return (string)
The platform name
Example
echo browser::platform();
/*
sample output: mac
possible results:
- mac
- win
- linux
- mobile
- iphone
- ipod
- webtv
- freebsd
*/