note 88537 deleted from function.utf8-encode by danbrown

From: Date: Thu, 19 Mar 2009 13:12:01 +0000
Subject: note 88537 deleted from function.utf8-encode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152142@lists.php.net to get a copy of this message
Note Submitter: cmyk777 at gmail dot com ---- This function may be useful do encode array keys and values: <?php function to_utf8($in) { if (is_array($in)) { foreach ($in as $key => $value) { $out[to_utf8($key)] = to_utf8($value); } } elseif(is_string($in)) { return utf8_encode($in); } else { return $in; } return $out; } ?>

« previous php.notes (#152142) next »