ee benim yazdigim olay tam sana uyuyor iste

$tel = "05322222222";


if(ctype_digit($tel) && strlen($tel)==11){
echo "yes";
}else{
echo "no";
}