PHP/mdetect.php
function DetectIphoneOrIpod()
   {
       //We repeat the searches here because some iPods may report themselves as an iPhone, which would be okay.
      if ($this->DetectIphone() == $this->true ||
             $this->DetectIpod() == $this->true)
         return $this->true; 
      else
         return $this->false; 
   }
function DetectIphoneOrIpod()
   {
       //We repeat the searches here because some iPods may report themselves as an iPhone, which would be okay.
      if ($this->DetectIphone() == $this->true ||
             $this->DetectIpod() == $this->true)
         return $this->true; 
      else
         return $this->false; 
   }
function DetectIphoneOrIpod ( ) { //We repeat the searches here because some iPods may report themselves as an iPhone, which would be okay.
 if ( $ this -> DetectIphone ( ) == $ this -> true || $ this -> DetectIpod ( ) == $ this -> true ) return $ this -> true ; else return $ this -> false ; }
Detects if the current device is an iPhone or iPod Touch.
Detects if the current device is an iPhone or iPod Touch .