i am confuse about Unicode codepoint escape syntax. here is a demo
//this work fine
echo "\u{1f602}"; // echoes
//this doesn't work
$var = '1f602';
echo '"\u{' . $var . '}"';// out put \u1f602
after i search. i find eval will let it work correct
$var = '1f602';
eval('$re = "\u{' . $var . '}";');
echo $re; //echoes
so i wanna to know the reason, what cause this? how internal of php process it? not support on the runtime? thanks!!!