Breaking

Saturday, February 29, 2020

PHP tutorial , How to use switch case in php ?

Switch case is most useful first lets it use it


<?php

$language = "php";
switch ($language) {
case "php":
echo "php is best language and open source";
break;
case "asp.net":
echo "best microsoft product";
break;
case "c":
echo "most populer language";
break;
default:
echo "every language is best which cover market";
}
?>


result :

php is best language and open source

Thank you for visiting my blog







No comments:

Post a Comment

your suggestion are welcome by me