getID3::CharConvert() – Converts array to $encoding charset from $this->encoding.

You appear to be a bot. Output may be restricted

Description

Converts array to $encoding charset from $this->encoding.

Usage

getID3::CharConvert( $array, $encoding );

Parameters

$array
( array ) required
$encoding
( string ) required

Returns

void

Source

File name: wordpress/wp-includes/ID3/getid3.php
Lines:

1 to 21 of 21
  public function CharConvert(&$array, $encoding) {

    // identical encoding - end here
    if ($encoding == $this->encoding) {
      return;
    }

    // loop thru array
    foreach ($array as $key => $value) {

      // go recursive
      if (is_array($value)) {
        $this->getID3::CharConvert($array[$key], $encoding);
      }

      // convert string
      elseif (is_string($value)) {
        $array[$key] = trim(getid3_lib::iconv_fallback($encoding, $this->encoding, $value));
      }
    }
  }
 

 View on GitHub View on Trac