mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
d8fc668de6
commit
67603e0296
1 changed files with 31 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue