PHP/mdetect.php
function DetectIphone()
   {
      if ($this->initCompleted == $this->true ||
          $this->isIphone == $this->true)
         return $this->isIphone;
      
      if (stripos($this->useragent, $this->deviceIphone) > -1)
      {
         //The iPad and iPod Touch say they're an iPhone. So let's disambiguate.
         if ($this->DetectIpad() == $this->true ||
             $this->DetectIpod() == $this->true)
            return $this->false;
         //Yay! It's an iPhone!
         else
            return $this->true; 
      }
      else
         return $this->false; 
   }
function DetectIphone()
   {
      if ($this->initCompleted == $this->true ||
          $this->isIphone == $this->true)
         return $this->isIphone;
      
      if (stripos($this->useragent, $this->deviceIphone) > -1)
      {
         //The iPad and iPod Touch say they're an iPhone. So let's disambiguate.
         if ($this->DetectIpad() == $this->true ||
             $this->DetectIpod() == $this->true)
            return $this->false;
         //Yay! It's an iPhone!
         else
            return $this->true; 
      }
      else
         return $this->false; 
   }
function DetectIphone ( ) { if ( $ this -> initCompleted == $ this -> true || $ this -> isIphone == $ this -> true ) return $ this -> isIphone ; if ( stripos ( $ this -> useragent , $ this -> deviceIphone ) > - 1 ) { //The iPad and iPod Touch say they're an iPhone. So let's disambiguate.
 if ( $ this -> DetectIpad ( ) == $ this -> true || $ this -> DetectIpod ( ) == $ this -> true ) return $ this -> false ; //Yay! It's an iPhone!
 else return $ this -> true ; } else return $ this -> false ; }
Detects if the current device is an iPhone.
Detects if the current device is an iPhone .