<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'PHP File to byteArray'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 21 Apr 2026 03:21:18 +0000</lastBuildDate>
    <item>
      <title>kirik said on 13/Sep/2009</title>
      <link>https://snipplr.com/view/19254/php-file-to-bytearray</link>
      <description>&lt;p&gt;Why just not to use native php functions to apply function for each element of array? It will be way faster (and takes less memory) than foreach.&#13;
`$file = file_get_contents($_FILES['userfile']['tmp_name']);&#13;
$byteArr = str_split($file);&#13;
$byteArr = array_map('ord', $byteArr);`&lt;/p&gt;</description>
      <pubDate>Sun, 13 Sep 2009 15:42:55 UTC</pubDate>
      <guid>https://snipplr.com/view/19254/php-file-to-bytearray</guid>
    </item>
  </channel>
</rss>
