User Tools

Site Tools


php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
php [2013-11-05 23:39 CET]
dominik [Format seconds to words]
php [2013-11-05 23:40 CET] (current)
dominik [Format filesize human]
Line 20: Line 20:
  return number_format($v,​ $decimals) . $t;  return number_format($v,​ $decimals) . $t;
 } }
 +</​code>​
  
 +<code php>
 $tests = array(0, 1, 999, 1000, 1024, 54321, 1024*1024 - 100, 6902382592, 1208925819614629174706176);​ $tests = array(0, 1, 999, 1000, 1024, 54321, 1024*1024 - 100, 6902382592, 1208925819614629174706176);​
  
php.txt · Last modified: 2013-11-05 23:40 CET by dominik