mercredi 24 mars 2021

Which one should I choose? (if else) [closed]

What do you think of these two different code? both of them are working. I wonder if two different uses cause a problem in projects

OPTION1   
        <?php
        $a = 4;
        if($a < 5):
        echo "Less than five";
        endif;
        ?>
        
OPTION2     
        <?php
        $a = 4;
        if($a < 5)
        echo "Less than five";
        
        ?>

Aucun commentaire:

Enregistrer un commentaire