<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 19 May 2013 22:45:34 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DZone.com: How to correctly work with PHP serialization]]></title>
      <guid>http://www.phpdeveloper.org/news/18416</guid>
      <link>http://www.phpdeveloper.org/news/18416</link>
      <description><![CDATA[<p>
In <a href="http://css.dzone.com/articles/how-correctly-work-php">this new post</a> to DZone.com today <i>Giorgio Sironi</i> takes a look at the serializing functionality in PHP and how it works with both regular variables and objects.
</p>
<blockquote>
PHP is able to automatically serialize most of its variables to strings - letting you save them into storage like $_SESSION. However, there are some tweaks you have to know to avoid exploding .php scripts and performance problems.
</blockquote>
<p>
He gives some code snippets showing the serialization of variables and objects and points out a few things that can't be effectively serialized (like resources and closures). The mentions the "__sleep" and "__wakeup" magic methods for automatic class serialization and mentions the <a href="http://php.net/Serializable"> Serializable</a> interface that comes built in to PHP.
</p>]]></description>
      <pubDate>Wed, 29 Aug 2012 08:19:37 -0500</pubDate>
    </item>
  </channel>
</rss>
