תודה רבה לכולם, היסתדרתי. הנה הקוד: קוד PHP: <?php$str = 'שלום';$str = preg_replace('/&#([0-9]{4});/e', "chr(\\1-1264)", $str);echo $str;?>
<?php$str = 'שלום';$str = preg_replace('/&#([0-9]{4});/e', "chr(\\1-1264)", $str);echo $str;?>