svn: /phpdoc/de/trunk/reference/var/functions/ is-bool.xml

[email protected] (Mark Wiesemann)
Newsgroups php.doc.de
Message-ID <[email protected]>
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";
 }
 ?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.