[doc-en] master: boolean.xml Make the example executable (#5601)
| From: | Mikhail Alferov via GitHub | Date: | Tue, 09 Jun 2026 21:55:17 +0000 |
| Subject: | [doc-en] master: boolean.xml Make the example executable (#5601) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23368@lists.php.net to get a copy of this message | ||
Author: Mikhail Alferov (mmalferov)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-06-09T23:55:14+02:00
Commit: https://github.com/php/doc-en/commit/ee66d210fb1dd5799fbca9881c6ac2560a19579d
Raw diff: https://github.com/php/doc-en/commit/ee66d210fb1dd5799fbca9881c6ac2560a19579d.diff
boolean.xml Make the example executable (#5601)
Changed paths:
M language/types/boolean.xml
Diff:
diff --git a/language/types/boolean.xml b/language/types/boolean.xml
index 57f836bb76df..abdc1c848e07 100644
--- a/language/types/boolean.xml
+++ b/language/types/boolean.xml
@@ -19,7 +19,10 @@
<programlisting role="php">
<![CDATA[
<?php
+
$foo = True; // assign the value TRUE to $foo
+
+var_dump($foo); // bool(true)
?>
]]>
</programlisting>
@@ -35,6 +38,7 @@ $foo = True; // assign the value TRUE to $foo
<programlisting role="php">
<![CDATA[
<?php
+
$action = "show_version";
$show_separators = true;