<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Generate Readable Byte Labels Using&#160;PHP</title> <atom:link href="http://davidwalsh.name/generate-readable-byte-labels-using-php/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/generate-readable-byte-labels-using-php</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 15:40:33 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: PHP Agentur</title><link>http://davidwalsh.name/generate-readable-byte-labels-using-php/comment-page-1#comment-12995</link> <dc:creator>PHP Agentur</dc:creator> <pubDate>Tue, 27 Oct 2009 22:26:39 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=273#comment-12995</guid> <description>Nice one!
I did a similar function ... somewhat overkill, but a usefull thing over the years =)
http://openminds.lucido-media.de/human-readable-bytes-sorry-php-net</description> <content:encoded><![CDATA[<p>Nice one!<br
/> I did a similar function &#8230; somewhat overkill, but a usefull thing over the years =)<br
/> <a
href="http://openminds.lucido-media.de/human-readable-bytes-sorry-php-net" rel="nofollow">http://openminds.lucido-media.de/human-readable-bytes-sorry-php-net</a></p> ]]></content:encoded> </item> <item><title>By: JP</title><link>http://davidwalsh.name/generate-readable-byte-labels-using-php/comment-page-1#comment-1534</link> <dc:creator>JP</dc:creator> <pubDate>Fri, 06 Jun 2008 14:25:52 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=273#comment-1534</guid> <description>I always like using the right-shift operator for this kind of stuff. So instead of:$bytes /= 1024I would use:$bytes &gt;&gt;= 10Of course, you lost the digits after the decimal point (unless you get fancy), but on the plus side, it&#039;s way faster than floating point division. The shift operators must be some of the loneliest operators in PHP, don&#039;t you think?</description> <content:encoded><![CDATA[<p>I always like using the right-shift operator for this kind of stuff. So instead of:</p><p>$bytes /= 1024</p><p>I would use:</p><p>$bytes &gt;&gt;= 10</p><p>Of course, you lost the digits after the decimal point (unless you get fancy), but on the plus side, it&#8217;s way faster than floating point division. The shift operators must be some of the loneliest operators in PHP, don&#8217;t you think?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching using disk: basic
Object Caching 345/346 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 11:45:50 -->
