Converturea dimensiunii intr-un format usor de citit

postat acum 11 luni de Stefanescu Mihai in categorie Snippets
function HumanReadableFilesize($size) {
     // Adapted from:
     $mod = 1024;
    $units = explode(' ','B KB MB GB TB PB');
    for ($i = 0; $size > $mod; $i++) {
        $size /= $mod;
    return round($size, 2) . ' ' . $units[$i];


Sunt un tanar programator din Bucuresti ce lucreaza in PHP/Mysql (MySqli/PDO), Laravel, CodeIgniter, MySQL, PostgreSQL, Wordpress, HTML5/CSS3, Sass, Photoshop si multe altele.
Google+ Community Facebook Group

Comentariu postate de free minecraft la data de 14.05.2019
What's up to all, how is all, I think every one is getting more from this web site, and your views are nice for new people.
Comentariu postate de download minecraft free la data de 15.05.2019
Wonderful beat ! I wish to apprentice while you amend your website, how could i subscribe for a blog site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear concept
Comentariu postate de free minecraft download la data de 16.05.2019
My brother suggested I might like this website. He was once totally right. This publish truly made my day. You cann't believe simply how a lot time I had spent for this info! Thanks!