note 84978 added to function.htmlentities
| From: | paulkievits at hotmail dot com | Date: | Fri, 08 Aug 2008 08:13:05 +0000 |
| Subject: | note 84978 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143298@lists.php.net to get a copy of this message | ||
I made a slight alteration to the function below to allow the user to pass an array by reference
instead of by value:
function htmlizeArray(&$txtArray) {
if (is_array($txtArray)) {
foreach ($txtArray as $key => $val) {
htmlizeArray($val);
}
}
else {
htmlentities($txtArray);
}
}
----
Server IP: 89.248.170.61
Probable Submitter: 80.95.164.246
----
Manual Page -- http://www.php.net/manual/en/function.htmlentities.php
Edit -- https://master.php.net/note/edit/84978
Del: integrated -- https://master.php.net/note/delete/84978/integrated
Del: useless -- https://master.php.net/note/delete/84978/useless
Del: bad code -- https://master.php.net/note/delete/84978/bad+code
Del: spam -- https://master.php.net/note/delete/84978/spam
Del: non-english -- https://master.php.net/note/delete/84978/non-english
Del: in docs -- https://master.php.net/note/delete/84978/in+docs
Del: other reasons-- https://master.php.net/note/delete/84978
Reject -- https://master.php.net/note/reject/84978
Search -- https://master.php.net/manage/user-notes.php