- chr: documentation ( source)
- pack: documentation ( source)
<?php
$test = pack('c*', -22);
$testU = pack('C*', 234);
$testC = chr(-22);
$testCU = chr(234);
echo $test;
echo $testU;
echo $testC;
echo $testCU;
echo $test == $testU;
echo $testC == $test;
echo $testCU == $test;