<?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; multisort</title>
	<atom:link href="http://www.deepseath.com/?feed=rss2&#038;tag=multisort" rel="self" type="application/rss+xml" />
	<link>http://www.deepseath.com</link>
	<description></description>
	<lastBuildDate>Mon, 29 Jan 2024 09:55:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>利用数组排序</title>
		<link>http://www.deepseath.com/?p=178</link>
		<comments>http://www.deepseath.com/?p=178#comments</comments>
		<pubDate>Wed, 28 May 2008 12:49:35 +0000</pubDate>
		<dc:creator>Deepseath</dc:creator>
				<category><![CDATA[程序人生]]></category>
		<category><![CDATA[multisort]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SORT]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.deepseath.com/?p=178</guid>
		<description><![CDATA[前一阵写个小代码，因为涉及到的数据库数据不是很多，我将全部数据都写入到一个缓存数组中，这样进行列表的时候不会再次进行数据库查询（虽然数据不多，但由于整个系统的数据库压力很大负载比较高因此能不去查询数据库就尽量不去查询）。 array_multisort &#8212; 对多个数组或多维数组进行排序 说明 bool array_multisort ( array ar1 [, mixed arg [, mixed ... [, array ...]]] ) 如果成功则返回 TRUE，失败则返回 FALSE。 array_multisort() 可以用来一次对多个数组进行排序，或者根据某一维或多维对多维数组进行排序。 关联（string）键名保持不变，但数字键名会被重新索引。 输入数组被当成一个表的列并以行来排序――这类似于 SQL 的 ORDER BY 子句的功能。第一个数组是要排序的主要数组。数组中的行（值）比较为相同的话就按照下一个输入数组中相应值的大小来排序，依此类推。 本函数的参数结构有些不同寻常，但是非常灵活。第一个参数必须是一个数组。接下来的每个参数可以是数组或者是下面列出的排序标志。 排序顺序标志： SORT_ASC &#8211; 按照上升顺序排序 SORT_DESC &#8211; 按照下降顺序排序 排序类型标志： SORT_REGULAR &#8211; 将项目按照通常方法比较 SORT_NUMERIC &#8211; 将项目按照数值比较 SORT_STRING &#8211; 将项目按照字符串比较 每个数组之后不能指定两个同类的排序标志。每个数组后指定的排序标志仅对该数组有效 &#8211; 在此之前为默认值 SORT_ASC 和 [...]]]></description>
		<wfw:commentRss>http://www.deepseath.com/?feed=rss2&#038;p=178</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
