mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added a "see also" in the partintro to point to explode, implode, split and
join (which are described in the strings section) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@33476 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
777fe06346
commit
c0cadeb2be
1 changed files with 22 additions and 18 deletions
|
@ -13,6 +13,10 @@
|
|||
There are specific database handling functions for populating
|
||||
arrays from database queries, and several functions return arrays.
|
||||
</simpara>
|
||||
<para>
|
||||
See also <function>explode</function>, <function>implode</function>,
|
||||
<function>split</function> and <function>join</function>.
|
||||
</para>
|
||||
</partintro>
|
||||
|
||||
<refentry id="function.array">
|
||||
|
@ -255,8 +259,8 @@ array_keys ($array, "blue"); // returns array (0, 3, 4)
|
|||
those still using PHP 3.
|
||||
<example>
|
||||
<title>
|
||||
Implementation of <function>array_keys</function> for PHP 3
|
||||
users
|
||||
Implementation of <function>array_keys</function> for PHP 3
|
||||
users
|
||||
</title>
|
||||
<programlisting role="php">
|
||||
function array_keys ($arr, $term="") {
|
||||
|
@ -1033,8 +1037,8 @@ array_values ($array); // returns array ("XL", "gold")
|
|||
those still using PHP 3.
|
||||
<example>
|
||||
<title>
|
||||
Implementation of <function>array_values</function> for PHP 3
|
||||
users
|
||||
Implementation of <function>array_values</function> for PHP 3
|
||||
users
|
||||
</title>
|
||||
<programlisting role="php">
|
||||
function array_values ($arr) {
|
||||
|
@ -1557,34 +1561,34 @@ while (list ($key, $val) = each ($HTTP_POST_VARS)) {
|
|||
<varlistentry>
|
||||
<term>EXTR_OVERWRITE</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
If there is a collision, overwrite the existing variable.
|
||||
</simpara>
|
||||
<simpara>
|
||||
If there is a collision, overwrite the existing variable.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>EXTR_SKIP</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
If there is a collision, don't overwrite the existing
|
||||
variable.
|
||||
</simpara>
|
||||
<simpara>
|
||||
If there is a collision, don't overwrite the existing
|
||||
variable.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>EXTR_PREFIX_SAME</term>
|
||||
<listitem>
|
||||
<simpara>If there is a collision, prefix the new variable with
|
||||
<parameter>prefix</parameter>.
|
||||
</simpara>
|
||||
<simpara>If there is a collision, prefix the new variable with
|
||||
<parameter>prefix</parameter>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>EXTR_PREFIX_ALL</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Prefix all variables with <parameter>prefix</parameter>.
|
||||
</simpara>
|
||||
<simpara>
|
||||
Prefix all variables with <parameter>prefix</parameter>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
@ -2284,7 +2288,7 @@ while (list (, $number) = each ($numbers)) {
|
|||
lowest to highest when this function has completed.
|
||||
<example>
|
||||
<title><function>Sort</function> example</title>
|
||||
<programlisting role="php">
|
||||
<programlisting role="php">
|
||||
<?php
|
||||
|
||||
$fruits = array ("lemon", "orange", "banana", "apple");
|
||||
|
|
Loading…
Reference in a new issue