Wednesday, August 10, 2022

Switch Case Statements in php | PHP Tutorial #11

 Youtube:

https://www.youtube.com/watch?v=tiOvat39AI8&list=PLu0W_9lII9aikXkRE0WxDt1vozo3hnmtR&index=11

Blogpost:

https://www.codewithharry.com/videos/php-tutorials-in-hindi-11/     


<?php

$age = 56;

switch($age){

    case 12:

        echo "You are 12 years old <br>";

        break;

    case 45:

        echo "You are 45 years old <br>";

        break;

    case 56:

        echo "You are 56 years old boy <br>";

        break;

     default:

        echo "Your age is weird <br>";

        break;

 

    }

?>

No comments:

Post a Comment