Skip to content

Commit

Permalink
string section sync with EN (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored Apr 23, 2024
1 parent 131c020 commit 636c001
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions reference/strings/functions/substr.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 49299f8b46e7d259b78f22c057be1cdefe22da43 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 62126c55f1c6ed444043e7272c4f9e233818a44b Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.substr" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -221,27 +221,25 @@ echo "7) ".var_export(substr(1.2e3, 0, 4), true).PHP_EOL;
<function>substr</function> retourne une chaîne vide à partir de PHP 8.0.0;
auparavant &false; était retourné à la place.
</para>
<example>
<programlisting role="php">
<programlisting role="php">
<![CDATA[
<?php
var_dump(substr('a', 2));
?>
]]>
</programlisting>
&example.outputs.8;
<screen>
</programlisting>
&example.outputs.8;
<screen>
<![CDATA[
string(0) ""
]]>
</screen>
&example.outputs.7;
<screen>
</screen>
&example.outputs.7;
<screen>
<![CDATA[
bool(false)
]]>
</screen>
</example>
</screen>
</example>
</refsect1>

Expand Down

0 comments on commit 636c001

Please sign in to comment.