PHP has a chr function that returns a single character string containing the character specified by ascii
To fit the style of java script, you can create your own class
$string = String::fromCharCode(112, 108, 97, 105, 110); print($string);
Used class
class String { public static function fromCharCode() { return array_reduce(func_get_args(),function($a,$b){$a.=chr($b);return $a;}); } }
source share