Re: Introduction - Sam Lewis

From: Date: Sat, 08 Feb 2025 19:52:11 +0000
Subject: Re: Introduction - Sam Lewis
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-126357@lists.php.net to get a copy of this message
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?

« previous php.internals (#126357) next »