<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Dump an array to a file'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 05 Apr 2026 17:57:34 +0000</lastBuildDate>
    <item>
      <title>kencyber said on 09/Nov/2009</title>
      <link>https://snipplr.com/view/22802/dump-an-array-to-a-file</link>
      <description>&lt;p&gt;Why not just write the following:&#13;
&#13;
file_put_contents ("textfile.txt", serialize($GLOBALS));&#13;
&#13;
And then you can get it back by using:&#13;
&#13;
$globals = unserialize(file_get_contents("textfile.txt"));&lt;/p&gt;</description>
      <pubDate>Mon, 09 Nov 2009 19:54:46 UTC</pubDate>
      <guid>https://snipplr.com/view/22802/dump-an-array-to-a-file</guid>
    </item>
    <item>
      <title>kencyber said on 09/Nov/2009</title>
      <link>https://snipplr.com/view/22802/dump-an-array-to-a-file</link>
      <description>&lt;p&gt;&lt;p&gt;Sorry, my post got formatted - try that one more time:&lt;/p&gt;&#13;
&#13;
&lt;p&gt;Why not just write the following:&lt;/p&gt;&#13;
&#13;
&lt;pre&gt;&lt;code&gt;file_put_contents ("textfile.txt", serialize($GLOBALS));&#13;
&lt;/code&gt;&lt;/pre&gt;&#13;
&#13;
&lt;p&gt;And then you can get it back by using:&lt;/p&gt;&#13;
&#13;
&lt;pre&gt;&lt;code&gt;$globals = unserialize(file_get_contents("textfile.txt"));&#13;
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 09 Nov 2009 19:58:07 UTC</pubDate>
      <guid>https://snipplr.com/view/22802/dump-an-array-to-a-file</guid>
    </item>
    <item>
      <title>DigitalZone said on 07/Jul/2024</title>
      <link>https://snipplr.com/view/22802/dump-an-array-to-a-file</link>
      <description>&lt;p&gt;Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post.	&lt;a href="https://www.visa-saudi.org/iw/saudi-visa-for-cypriot-citizens"&gt;ויזה לסעודיה לאזרחי קפריסין&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 07 Jul 2024 17:44:19 UTC</pubDate>
      <guid>https://snipplr.com/view/22802/dump-an-array-to-a-file</guid>
    </item>
  </channel>
</rss>
