From 1b0f444c3a326a6acb0c8cfe6883b34c32e16899 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Fri, 30 May 2003 18:01:41 +0000 Subject: [PATCH] Link to the array type docs, added php tags in examples, and see also foreach. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@129441 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/array.xml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/reference/array/functions/array.xml b/reference/array/functions/array.xml index 6c8d34f192..0648269a07 100644 --- a/reference/array/functions/array.xml +++ b/reference/array/functions/array.xml @@ -1,5 +1,5 @@ - + @@ -16,7 +16,9 @@ Returns an array of the parameters. The parameters can be given - an index with the => operator. + an index with the => operator. Read the section + on the array type for more + information on what an array is. @@ -43,11 +45,13 @@ <function>array</function> example array ("a"=>"orange", "b"=>"banana", "c"=>"apple"), "numbers" => array (1, 2, 3, 4, 5, 6), "holes" => array ("first", 5 => "second", "third") -); +) +?> ]]> @@ -57,8 +61,10 @@ $fruits = array ( Automatic index with <function>array</function> 1, 4=>1, 19, 3=>13); print_r($array); +?> ]]> @@ -89,8 +95,10 @@ Array 1-based index with <function>array</function> 'January', 'February', 'March'); print_r($firstquarter); +?> ]]> @@ -110,7 +118,9 @@ Array See also array_pad, - list, and range. + list, + foreach, and + range.