<?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: Store An Array</title>
	<atom:link href="http://www.pk-tuts.co.uk/php/php-functions/store-an-array/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pk-tuts.co.uk/php/php-functions/store-an-array?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
	<description>Written By Peter Kelly</description>
	<lastBuildDate>Wed, 10 Mar 2010 22:41:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: PHP Dreams</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/store-an-array/comment-page-1#comment-19</link>
		<dc:creator>PHP Dreams</dc:creator>
		<pubDate>Fri, 16 Oct 2009 20:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=213#comment-19</guid>
		<description>Pete, I would point out a couple of things that you may want to think about.  The first is a matter of semantics most likely, but it has to do with the use of the word &quot;encrypt&quot;.  Encryption typically entails encoding data with a &#039;key&#039; of some sort to protect that data.  It can then not be easily decrypted without knowing the key....thereby protecting the contents.

Encoding on the other hand is a method of changing or transforming the format of the data so that it can be stored in an easier or different fashion.  The base64 functions will encode/decode, but not encrypt as there is no inherent security.

The other thing is that the way your functions are setup, they would only encode the first level of multi-dimensional arrays.  I would probably approach things differently by using the serialize() function FIRST, which will handle an array of unlimited depth, then perhaps use base64 encoding to make the data more universally transportable/storable/etc.

I hope this helps!</description>
		<content:encoded><![CDATA[<p>Pete, I would point out a couple of things that you may want to think about.  The first is a matter of semantics most likely, but it has to do with the use of the word &#8220;encrypt&#8221;.  Encryption typically entails encoding data with a &#8216;key&#8217; of some sort to protect that data.  It can then not be easily decrypted without knowing the key&#8230;.thereby protecting the contents.</p>
<p>Encoding on the other hand is a method of changing or transforming the format of the data so that it can be stored in an easier or different fashion.  The base64 functions will encode/decode, but not encrypt as there is no inherent security.</p>
<p>The other thing is that the way your functions are setup, they would only encode the first level of multi-dimensional arrays.  I would probably approach things differently by using the serialize() function FIRST, which will handle an array of unlimited depth, then perhaps use base64 encoding to make the data more universally transportable/storable/etc.</p>
<p>I hope this helps!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
