phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


PHP Basic: Boolean Data Type

Tag: data type, boolean   Category: PHP Basic
post: 01 Mar 2008 read: 222


PHP Basic Data Type Step By Step Tutorial - Part 2: Boolean data type is the simplest data type, namely to express the character of sensitive case value whether it is TRUE or FALSE. Pay attention to the example of using boolean data type at script as following :

(File name : boolean.php)


<Html>
<head>
<title>Boolean Data Type</title>
</head>
<body>
<h1>the example of Boolean assess</h1>
<pre>
	$x = TRUE;
	$y = FALSE;
</pre>
Execute the result with PHP : <br>
<?
	$x = TRUE;
	$y = FALSE;
	echo "\$x = $x"."<br>";
	echo "\$y = $y";
?>
</body>
</html>

The result of executing boolean.php :

php basic - data type



| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting