Is there a way to only display the iOS firmware in browser thru PHP?
I have tried this
echo $agent = $_SERVER["HTTP_USER_AGENT"];
but then al info is shown and i want only to display the iOS version. This is what i get if i use that code:
Mozilla/5.0 (iPhone; CPU OS X 7_0_2) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 mobile Safari/536.30.1 etc etc...
Is there any way to display this like: 7.0.2 only