<?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>sort &#8211; トモデジ  tomodigi.com</title>
	<atom:link href="https://tomodigi.com/tag/sort/feed/" rel="self" type="application/rss+xml" />
	<link>https://tomodigi.com</link>
	<description>デジタルもアナログも</description>
	<lastBuildDate>Fri, 23 Sep 2011 12:03:46 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>sortの挙動 (PHP)</title>
		<link>https://tomodigi.com/web/sort%e3%81%ae%e6%8c%99%e5%8b%95-php/</link>
					<comments>https://tomodigi.com/web/sort%e3%81%ae%e6%8c%99%e5%8b%95-php/#respond</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Sat, 21 Nov 2009 14:16:28 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[配列]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=40</guid>

					<description><![CDATA[配列の並び替えsortを使う際には、データの形式に注意しましょう。2 番目のパラメータの指定によって挙動は下記のように変化します。 SORT_REGULAR 通常通りに項目を比較 SORT_NUMERIC 数値的に項目を &#8230; <a href="https://tomodigi.com/web/sort%e3%81%ae%e6%8c%99%e5%8b%95-php/" class="more-link">続きを読む <span class="screen-reader-text">sortの挙動 (PHP)</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>配列の並び替えsortを使う際には、データの形式に注意しましょう。2 番目のパラメータの指定によって挙動は下記のように変化します。</p>
<ul>
<li>SORT_REGULAR 通常通りに項目を比較</li>
<li>SORT_NUMERIC 数値的に項目を比較</li>
<li>SORT_STRING 文字列として項目を比較</li>
</ul>
<p>文字列として入っていた数値を並び替える場合（たとえば少数など）は明示的にSORT_NUMERICとする必要があります。</p>
<pre>sort($array,SORT_NUMERIC)</pre>
<p>このようにして数値として並び替えます。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/sort%e3%81%ae%e6%8c%99%e5%8b%95-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
