An if Statement for string : If statement « Statement « PHP
- PHP
- Statement
- If statement
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>
Related examples in the same category