2011-01-10 5 views

Antwort

3
$str = '\u0627\u0644\u0631\u0626\u064a\u0633'; 
$converted = preg_replace('/\\\u([0-9a-z]{4})/i', '&#x$1;', $str); 
echo $converted; // displays الرئيس 
1
$str = '"\u0627\u0644\u0631\u0626\u064a\u0633"'; 

echo json_decode($str);