Method: browser::platform

Returns the platform

Info

Syntax

browser::platform($ua=null)

Parameters

Return (string)

The platform name

Example


echo browser::platform();
/* 

sample output: mac
possible results:

- mac
- win
- linux
- mobile
- iphone
- ipod
- webtv
- freebsd

*/