RFC proposal.

From: Date: Sun, 04 Oct 2015 22:10:25 +0000
Subject: RFC proposal.
Groups: php.internals 
Request: Send a blank email to internals+get-88670@lists.php.net to get a copy of this message
Hi PHP community. I am a developer with few years experience in PHP and now want to propose some addition to default "filesystem" extension. There's money_format and number_format functions to format money and number values in human-readable format, but there is not any "size_format" function that does the same - reformat an integer that holds size in bytes in well-formed string representing size in one of "big" units like MB or GB. So I can implement function to do this with following interface: > size_format($format, $bytes, $unit = null) that will format size like printf with taking in accoun using unit and multiplier (1k or 1024). So, I wait for responses. Thanks for attention.

« previous php.internals (#88670) next »