2 Ağustos 2016 Salı

Php Koşula Bağlı Fonksiyon Tanımlamak

//koşula bağlı fonksiyon tanimlamak
<?php

$sayi="5";
if(($sayi<5)or($sayi>5)){
   
    echo "değer 5' denk olmadığından fonksiyon oluşturulamadı";
   
   
}else{
    function test(){
        echo "sayı değeri 5 e eşit olduğundan bu fonksiyon oluşturuldu.";
       
    }
    test();
}

?>

Hiç yorum yok:

Yorum Gönder