Merhaba,

Aşağıdaki kodu kullanabilirsiniz.

if(stripos($_SERVER["HTTP_USER_AGENT"],'iPhone')!==FALSE) {
// kodlar buraya
}