An if Statement for string : If : Language Basics PHP Source Code


PHP Source Code » Language Basics » If »

 

An if Statement for string




<html>
<head>
<title>An if Statement</title>
</head>
<body>
<?php
$mood = "happy";
if $mood == "happy" ){
    print "I'm in a good mood";
}
?>
</body>
</html>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» If