Esempio n. 1
0
 /**
  * decodes a (nested) array of data from UTF-8 into the configured character set
  *
  * @access   public
  * @param    array     $data         data to convert
  * @param    string    $encoding     character encoding
  * @return   array
  */
 function decode_array($data, $encoding)
 {
     $return_value = array();
     foreach ($data as $key => $value) {
         if (!is_array($value)) {
             $return_value[$key] = cpaint_transformer::decode($value, $encoding);
         } else {
             $return_value[$key] = cpaint_transformer::decode_array($value, $encoding);
         }
     }
     return $return_value;
 }