I am using this code to identify an iphone and if it's true it does X.
$useragent=$_SERVER['HTTP_USER_AGENT'];
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),"iphone"))
{
However, what I can not figure out is how to make this statement not true. Meaning if user agent is NOT an iphone then do something different. I have used the code below and the code ignores my alternative coding if its not an iphone.
$useragent=$_SERVER['HTTP_USER_AGENT'];
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),-"iphone"))
{
What should I put to make this statment false. This seems so simple but I am sorry people it's late and my brain is fried. Any assistance will be greatly appreciated.