svn: /phpdoc/en/trunk/reference/var/functions/ is-bool.xml
| From: | Yago Ferrer | Date: | Mon, 04 Jan 2010 02:51:59 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/var/functions/ is-bool.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5746@lists.php.net to get a copy of this message | ||
yago Mon, 04 Jan 2010 02:51:59 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293064
Log:
The example B it was a little confusing.
Improving the example trying to make it more self-explanatory.
Changed paths:
U phpdoc/en/trunk/reference/var/functions/is-bool.xml
Modified: phpdoc/en/trunk/reference/var/functions/is-bool.xml
===================================================================
--- phpdoc/en/trunk/reference/var/functions/is-bool.xml 2010-01-04 02:36:35 UTC (rev 293063)
+++ phpdoc/en/trunk/reference/var/functions/is-bool.xml 2010-01-04 02:51:59 UTC (rev 293064)
@@ -50,14 +50,14 @@
$a = false;
$b = 0;
-// Since $a is a boolean, this is true
-if (is_bool($a)) {
+// Since $a is a boolean, it will return true
+if (is_bool($a) === true) {
echo "Yes, this is a boolean";
}
-// Since $b is not a boolean, this is not true
-if (is_bool($b)) {
- echo "Yes, this is a boolean";
+// Since $b is not a boolean, it will return false
+if (is_bool($b) === false) {
+ echo "No, this is not a boolean";
}
?>
]]>