- bin2hex: documentation ( source)
- urlencode: documentation ( source)
- base64_encode: documentation ( source)
- gzcompress: documentation ( source)
- gzuncompress: documentation ( source)
<?php
$str = 'Hello I am a very very very very long string';
$compressed = gzcompress($str, 9);
$uncompressed = gzuncompress($compressed);
echo $str, "\n";
echo $uncompressed, "\n";
echo base64_encode($compressed), "\n";
echo bin2hex($compressed), "\n";
echo urlencode($compressed), "\n";