<?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>array_intersect &#8211; トモデジ  tomodigi.com</title>
	<atom:link href="https://tomodigi.com/tag/array_intersect/feed/" rel="self" type="application/rss+xml" />
	<link>https://tomodigi.com</link>
	<description>デジタルもアナログも</description>
	<lastBuildDate>Mon, 03 Jun 2013 13:58:10 +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>PHPの配列で一致するものだけを残す　array_intersect()</title>
		<link>https://tomodigi.com/web/php/php%e3%81%ae%e9%85%8d%e5%88%97%e3%81%a7%e4%b8%80%e8%87%b4%e3%81%99%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a0%e3%81%91%e3%82%92%e6%ae%8b%e3%81%99%e3%80%80array_intersect/</link>
					<comments>https://tomodigi.com/web/php/php%e3%81%ae%e9%85%8d%e5%88%97%e3%81%a7%e4%b8%80%e8%87%b4%e3%81%99%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a0%e3%81%91%e3%82%92%e6%ae%8b%e3%81%99%e3%80%80array_intersect/#respond</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Mon, 03 Jun 2013 19:44:32 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[array_intersect]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=1962</guid>

					<description><![CDATA[array_intersect()を使って、PHPの配列で両者に一致するものだけを探し、新たな配列として返します。 array_a = array(1,2,3,4,5,6); array_b = array(1,3,5, &#8230; <a href="https://tomodigi.com/web/php/php%e3%81%ae%e9%85%8d%e5%88%97%e3%81%a7%e4%b8%80%e8%87%b4%e3%81%99%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a0%e3%81%91%e3%82%92%e6%ae%8b%e3%81%99%e3%80%80array_intersect/" class="more-link">続きを読む <span class="screen-reader-text">PHPの配列で一致するものだけを残す　array_intersect()</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>array_intersect()を使って、PHPの配列で両者に一致するものだけを探し、新たな配列として返します。<br />
<code><br />
array_a = array(1,2,3,4,5,6);<br />
array_b = array(1,3,5,7,9);<br />
array_c = array_intersect(array_a,array_b);</code></p>
<p>array_cには(1,3,5)が入ります。元々のarray_aとarray_bは変化しません。<br />
連想配列でも使えますが、第1引数のキーで出力されます。<br />
<code><br />
array_d = array('w' =&gt; 1,'x' =&gt; 2,'y' =&gt; 3,'z' =&gt; 4);<br />
array_e = array('m' =&gt; 1,'n' =&gt; 3,'l' =&gt; 5);<br />
array_f = array_intersect(array_d,array_e);<br />
array_g = array_intersect(array_e,array_d);</code></p>
<p>array_fには(&#8216;w&#8217; =&gt; 1,&#8217;y&#8217; =&gt; 3)が、array_fには(&#8216;m&#8217; =&gt; 1,&#8217;n&#8217; =&gt; 3)が入ります。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/php/php%e3%81%ae%e9%85%8d%e5%88%97%e3%81%a7%e4%b8%80%e8%87%b4%e3%81%99%e3%82%8b%e3%82%82%e3%81%ae%e3%81%a0%e3%81%91%e3%82%92%e6%ae%8b%e3%81%99%e3%80%80array_intersect/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
