Add an example

#Provided by Kriscraig

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326752 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Yannick Torres 2012-07-20 23:08:14 +00:00
parent d8fc668de6
commit 67603e0296

View file

@ -142,6 +142,37 @@ echo $pass; // *
</programlisting>
</example>
</para>
<para>
<example>
<title><function>explode</function> return examples</title>
<programlisting role="php">
<![CDATA[
<?php
/* A string that doesn't contain the delimiter will simply return a one-length array of the original string. */
$input1 = "hello";
$input2 = "hello,there";
var_dump( explode( ',', $input1 ) );
var_dump( explode( ',', $input2 ) );
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
array(1)
(
[0] => string(5) "hello"
)
array(2)
(
[0] => string(5) "hello"
[1] => string(5) "there"
)
]]>
</screen>
</example>
</para>
<para>
<example>
<title><parameter>limit</parameter> parameter examples</title>