Re: Introduction - Sam Lewis
| From: | Bilge | Date: | Sun, 09 Feb 2025 13:58:03 +0000 |
| Subject: | Re: Introduction - Sam Lewis | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126361@lists.php.net to get a copy of this message | ||
On 08/02/2025 19:52, Eugene Sidelnyk wrote:
Hi Sam, Tim, Rob Maybe there could be another good feature to start with - the function to format bytes into a human-readable format (for debug purpuses) to have pretty view of the size (like 1.5GB, or 20MB) Right now every time I need this, I find myself copying the function from stack overflow, since PHP doesn't have any built-in solution: https://stackoverflow.com/questions/2510434/format-bytes-to-kilobytes-megabytes-gigabytes This is too little thing for having separate composer library, and perhaps having it built-in would be better? What do you think?https://github.com/ScriptFUSION/ByteFormatter/