Less than 1 minute
String Utilities (Hazaar\Util\Str)
Some of the most useful string helpers include:
Str::fromBytes()
Format a byte value as a human-readable string:
use Hazaar\Util\Str;
echo Str::fromBytes(1048576); // 1MBStr::toBytes()
Parse a human-readable byte string into a number:
echo Str::toBytes('1MB'); // 1048576Str::guid()
Generate a random GUID:
echo Str::guid(); // e.g. 123e4567-e89b-12d3-a456-426614174000