Skip to content

Commit

Permalink
Split statement variant to a new example
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Nov 16, 2024
1 parent 37c5f9a commit a0e60c8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion reference/misc/functions/exit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<?php
// exit program normally
exit;
exit();
exit(0);
Expand Down Expand Up @@ -182,6 +181,19 @@ Destruct: Foo::__destruct()
]]>
</screen>
</example>
<example>
<title><function>exit</function> as a statement</title>
<programlisting role="php">
<![CDATA[
<?php
// exit program normally with exit code 0
exit;
?>
]]>
</programlisting>
</example>
</refsect1>

<refsect1 role="notes">
Expand Down

0 comments on commit a0e60c8

Please sign in to comment.