note 9276 deleted from function.htmlentities by jimw
| From: | jimw@php.net | Date: | Mon, 17 Dec 2001 22:28:04 +0000 |
| Subject: | note 9276 deleted from function.htmlentities by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23014@lists.php.net to get a copy of this message | ||
adding a note in regards to Federico@Pomi.net suggestion.
I had to add a simple reset($trans) function after his code and that got me working.
His modified code is below <only a part>
function literal2numeral(&$value, $key) {$value="&#".ord($key).";";}
$trans=get_html_translation_table (HTML_ENTITIES);
array_walk ($trans, 'literal2numeral');
reset($trans);