svn: /phpdoc/de/trunk/reference/var/functions/ is-bool.xml
| From: | Mark Wiesemann | Date: | Fri, 02 Jul 2010 19:40:24 +0000 |
| Subject: | svn: /phpdoc/de/trunk/reference/var/functions/ is-bool.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-3734@lists.php.net to get a copy of this message | ||
wiesemann Fri, 02 Jul 2010 19:40:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300954
Log:
- fixed Doc Bug #52224: [DE] Logic problem in example
Bug: http://bugs.php.net/52224 (Analyzed) [DE] Logic problem
in example
Changed paths:
U phpdoc/de/trunk/reference/var/functions/is-bool.xml
Modified: phpdoc/de/trunk/reference/var/functions/is-bool.xml
===================================================================
--- phpdoc/de/trunk/reference/var/functions/is-bool.xml 2010-07-02 19:36:29 UTC (rev 300953)
+++ phpdoc/de/trunk/reference/var/functions/is-bool.xml 2010-07-02 19:40:24 UTC (rev 300954)
@@ -57,12 +57,12 @@
$b = 0;
// Da $a ein Boolean ist, wird true zurückgegeben
-if (is_bool($a)) {
+if (is_bool($a) === true) {
echo "Ja, das ist ein Boolean";
}
// Da $b kein Boolean ist, wird false zurückgegeben
-if (is_bool($b)) {
+if (is_bool($b) === false) {
echo "Nein, dies ist kein Boolean";
}
?>