<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>精東·博客 &#187; array</title>
	<atom:link href="http://www.wemvc.com/tag/array/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wemvc.com</link>
	<description>男人的胸怀是委屈撑大的。</description>
	<lastBuildDate>Tue, 10 Jan 2012 04:26:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP操作数组相关函数</title>
		<link>http://www.wemvc.com/679.html</link>
		<comments>http://www.wemvc.com/679.html#comments</comments>
		<pubDate>Tue, 09 Dec 2008 05:34:00 +0000</pubDate>
		<dc:creator>精东</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[array]]></category>

		<guid isPermaLink="false">http://www.wemvc.com/?p=679</guid>
		<description><![CDATA[range($low, $high),range($low, $high, $step);//创建顺序值的数组如:range(1,4)为(1,2,3,4)又如range(&#8216;a&#8217;,'z&#8217;)
each($array)按顺序返回数组的当前元素,并且将下一个元素设置为当前元素;
reset($array)将数组当前元素重新设置到数组开始处
list()可以用来将一个数组分解为一系列的值,如 list($a,$b)=each($array)
shuffle($array),array_rand($arg, $num_req);对数组随机排序
array_reverse($input),array_reverse($input, $preserve_keys)   返回原数组的反向排序
sort($array);对数组排序
PHP数组是一个重要的概念,它包含有大量的函数,方便人们的开发…现将它的数组分类,以方便查询及应用.
先说说PHP数组的定义…PHP数组包含两个项,key和value,可以通过key来获取相应的value,其中key又可以是数值和关联的,如$array[0],$array[one]…
创建数组
PHP中的数组声明跟其它语言的也有点小小的差别,但一样可以声明为一维,两维,三维及多维等,如
$array[0] = 1,$array = array(1,2,3); 一维数组,只包括三个值,属于数值型数组,引用时可用$array[0]来代表1,创建数值数组时可以省略索引.

$array = array&#40;
   1 =&#62; “one”,
   2 =&#62; “two”,
   3 =&#62; “three”,
   4 =&#62; array&#40;
    “one” =&#62; 1,
    “two” =&#62; 2,
    “three” =&#62; 3
 [...]]]></description>
		<wfw:commentRss>http://www.wemvc.com/679.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

