Bu şekilde kullana bilirsin.
$browser_type = $_SERVER["HTTP_USER_AGENT"];
if( strpos($browser_type,'Android')){
header('Location: http://m.diziizlettik.com');
}
else if(strpos($browser_type, 'iPhone')){
header('Location: http://m.diziizlettik.com');
}
else if(strpos($browser_type, 'Windows Phone')){
header('Location: http://m.diziizlettik.com');
}else{
header('Location: http://www.diziizlettik.com');
}