Home  • Programming • PHP

Selection IF-ELSE example

<?php

   $sex="M";

   if($sex=="M"){

      echo "Male";
 
   }else{

       echo "Female";

    }

?>

Comments 1


Male

Share

Copyright © 2024. Powered by Intellect Software Ltd