note 112497 added to function.utf8-encode
| From: | a dot rueedlinger at gmail dot com | Date: | Sat, 22 Jun 2013 01:06:29 +0000 |
| Subject: | note 112497 added to function.utf8-encode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195324@lists.php.net to get a copy of this message | ||
If you need a function which converts a string array into a utf8 encoded string array then this
function might be useful for you:
<?php
function utf8_string_array_encode(&$array){
$func = function(&$value,&$key){
if(is_string($value)){
$value = utf8_encode($value);
}
if(is_string($key)){
$key = utf8_encode($key);
}
if(is_array($value)){
utf8_string_array_encode($value);
}
};
array_walk($array,$func);
return $array;
}
?>
----
Server IP: 69.147.83.199
Probable Submitter: 81.62.159.146
----
Manual Page -- http://php.net/manual/en/function.utf8-encode.php
Edit -- https://master.php.net/note/edit/112497
Del: integrated -- https://master.php.net/note/delete/112497/integrated
Del: useless -- https://master.php.net/note/delete/112497/useless
Del: bad code -- https://master.php.net/note/delete/112497/bad+code
Del: spam -- https://master.php.net/note/delete/112497/spam
Del: non-english -- https://master.php.net/note/delete/112497/non-english
Del: in docs -- https://master.php.net/note/delete/112497/in+docs
Del: other reasons-- https://master.php.net/note/delete/112497
Reject -- https://master.php.net/note/reject/112497
Search -- https://master.php.net/manage/user-notes.php