Re: docs request
| From: | Gabor Hojtsy | Date: | Sat, 10 Nov 2001 22:25:52 +0000 |
| Subject: | Re: docs request | ||
| References: | 1 2 3 4 5 6 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969338644@lists.php.net to get a copy of this message | ||
I have already added it as such:
<para>
<example>
<title><function>array_chunk</function> example</title>
<programlisting role="php">
$input_array = array('a', 'b', 'c', 'd', 'e');
print_r(array_chunk($input_array, 2));
print_r(array_chunk($input_array, 2, TRUE));
</programlisting>
</example>
The printout of the above program will be:
<informalexample>
<programlisting>
Array
(
[0] => Array
(
[0] => a
[1] => b
)
[1] => Array
(
[0] => c
[1] => d
)
[2] => Array
(
[0] => e
)
)
Array
(
[0] => Array
(
[0] => a
[1] => b
)
[1] => Array
(
[2] => c
[3] => d
)
[2] => Array
(
[4] => e
)
)
</programlisting>
</informalexample>
</para>