I have stumbled upon this link. It's about chr
function in PHP. There is an example in this link that I can't understand.
declare(encoding='UTF-8');
$str = chr(240) . chr(159) . chr(144) . chr(152);
echo $str;
This code gives "an elephant image" as an answer. I don't understand how this code above works? Are there any explanation about how the concatenation of chr
works?
I will give more examples about this. I change the number from the last chr
.
echo chr(240) . chr(159) . chr(144) . chr(154); // return a shell logo
echo chr(240) . chr(159) . chr(144) . chr(156); // return an ant logo
echo chr(240) . chr(159) . chr(144) . chr(158); // return a ladybug logo
echo chr(240) . chr(159) . chr(144) . chr(160); // return a fish logo