note 16136 added to function.htmlentities
| From: | admiNatSmintmaMdotDe at php2 dot chek dot com | Date: | Wed, 17 Oct 2001 13:59:08 +0000 |
| Subject: | note 16136 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19043@lists.php.net to get a copy of this message | ||
For everybody would like to convert { to the original char:
function numeral2original($in) {
while(ereg("&#([0-9]{0,4});",$in,$x)) {
$out .= substr($in,0,strpos($in,$x[0])).chr($x[1]);
$in = substr($in,strpos($in,$x[0])+strlen($x[0]));
}
return $out.$in;
}
Have phun, just mail me for comments...
--
http://www.php.net/manual/en/function.htmlentities.php
http://master.php.net/manage/user-notes.php?action=edit+16136
http://master.php.net/manage/user-notes.php?action=delete+16136
http://master.php.net/manage/user-notes.php?action=reject+16136