Is_string () fonksiyonu
Açıklama
Is_string () PHP fonksiyonu girilen değerin string olup olmadığını kontrol eder.. This could be used within an if () statement to treat strings in one way and non-strings in another. It will return true or false.
<?php
if (is_string(55))
{
echo "Yes";
} else {
echo "No";
}
?>
Çıktı
Kodu çalıştırmak için ▶ butonuna tıklayın.