- array_map: documentation ( source)
- hex2bin: documentation ( source)
- implode: documentation ( source)
- dechex: documentation ( source)
- str_split: documentation ( source)
- ord: documentation ( source)
<?php
echo hex2bin(7070);
echo hex2bin(implode(array_map(function ($v) {
return dechex(ord($v));
}, str_split("toto"))));