 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: passing array as parameter to stored procedure in mysql</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/passing-array-as-parameter-to-stored-procedure-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/passing-array-as-parameter-to-stored-procedure-in-mysql/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 23:28:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: reliant</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/passing-array-as-parameter-to-stored-procedure-in-mysql/#comment-75813</link>
		<dc:creator>reliant</dc:creator>
		<pubDate>Fri, 09 Apr 2010 14:57:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-75813</guid>
		<description><![CDATA[Use implode() to change your array into a string.

&lt;pre&gt;
$array = array(&#039;lastname&#039;, &#039;email&#039;, &#039;phone&#039;);
$comma_separated = implode(&quot;,&quot;, $array);

echo $comma_separated; // lastname,email,phone
&lt;/pre&gt;

Then when you retrieve it from the database use explode().

&lt;pre&gt;$array = explode(&quot;,&quot;, $string);&lt;/pre&gt;




&lt;a href=&quot;http://www.reliant-technology.com&quot;&gt;]]></description>
		<content:encoded><![CDATA[<p>Use implode() to change your array into a string.</p>
<pre>
$array = array('lastname', 'email', 'phone');
$comma_separated = implode(",", $array);

echo $comma_separated; // lastname,email,phone
</pre>
<p>Then when you retrieve it from the database use explode().</p>
<pre>$array = explode(",", $string);</pre>
<p><a href="http://www.reliant-technology.com"></a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.038 seconds using memcached
Object Caching 267/273 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 23:30:26 -->