Pages

Saturday, August 27, 2011

Boolean



Boolean is simple syntax of PHP, for execution True or False which case sensitive.
Syntax : $eat =TRUE;

For Example :

<html>
<head>
<title>Boolean</title>
</head>

<body>
<h1> boolean example</h1>
<pre>
$a = TRUE;
$b = FALSE;
</pre>
Execution with PHP: <br>
<?php
$a = TRUE;
$b = FALSE;
echo “\$a = $a”.”<br>”;
echo “\$b = $b”;
?>
</body>
</html>


LET'S TRY

No comments:

Post a Comment