<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'PHP File to byteArray'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 08:29:04 GMT</pubDate>
<item>
<title>ceolceol said on 1/23/11</title>
<link>http://snipplr.com/view/19254/php-file-to-bytearray/</link>
<description><![CDATA[ @kirik I know this was a while ago, but there isn't any speed difference between foreach and array_map. ]]></description>
<pubDate>Sun, 23 Jan 2011 05:39:38 GMT</pubDate>
<guid>http://snipplr.com/view/19254/php-file-to-bytearray/</guid>
</item>
<item>
<title>kirik said on 9/13/09</title>
<link>http://snipplr.com/view/19254/php-file-to-bytearray/</link>
<description><![CDATA[ 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.
`$file = file_get_contents($_FILES['userfile']['tmp_name']);
$byteArr = str_split($file);
$byteArr = array_map('ord', $byteArr);` ]]></description>
<pubDate>Sun, 13 Sep 2009 15:42:55 GMT</pubDate>
<guid>http://snipplr.com/view/19254/php-file-to-bytearray/</guid>
</item>
</channel>
</rss>