core/classes/FileHelper.class.php
public function iniHumanFriendlySize($size){

        switch( substr($size,-1) ) {
            case 'G':
                $size = $size * 1024;
            case 'M':
                $size = $size * 1024;
            case 'K':
                $size = $size * 1024;
        }//switch

        return $this->humanFileSize($size);

    }
public function iniHumanFriendlySize($size){

        switch( substr($size,-1) ) {
            case 'G':
                $size = $size * 1024;
            case 'M':
                $size = $size * 1024;
            case 'K':
                $size = $size * 1024;
        }//switch

        return $this->humanFileSize($size);

    }
public function iniHumanFriendlySize ( $ size ) { switch ( substr ( $ size , - 1 ) ) { case 'G' : $ size = $ size * 1024 ; case 'M' : $ size = $ size * 1024 ; case 'K' : $ size = $ size * 1024 ; } //switch return $ this -> humanFileSize ( $ size ) ; }
Human friendly file size of a value using a convention supported in php ini values.

@param string $size The ini size.

@return string
Human friendly file size of a value using a convention supported in php ini values .