note 108339 added to function.utf8-decode

From: Date: Wed, 18 Apr 2012 12:37:15 +0000
Subject: note 108339 added to function.utf8-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-187220@lists.php.net to get a copy of this message
I didn't see any post showing a way to recursively utf8_decode an array. So here's one I've just built for this purpose: function utf8DecodeArray($array) { $utf8DecodedArray = array(); foreach ($array as $key => $value) { if (is_array($value)) { $utf8DecodedArray[$key] = utf8DecodeArray($value); continue; } $utf8DecodedArray[$key] = utf8_decode($value); } return $utf8DecodedArray; } ---- Server IP: 69.147.83.197 Probable Submitter: 194.78.222.159 ---- Manual Page -- http://www.php.net/manual/en/function.utf8-decode.php Edit -- https://master.php.net/note/edit/108339 Del: integrated -- https://master.php.net/note/delete/108339/integrated Del: useless -- https://master.php.net/note/delete/108339/useless Del: bad code -- https://master.php.net/note/delete/108339/bad+code Del: spam -- https://master.php.net/note/delete/108339/spam Del: non-english -- https://master.php.net/note/delete/108339/non-english Del: in docs -- https://master.php.net/note/delete/108339/in+docs Del: other reasons-- https://master.php.net/note/delete/108339 Reject -- https://master.php.net/note/reject/108339 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187220) next »