You are here

function getid3_analyze in getID3() 8

Same name and namespace in other branches
  1. 5 getid3.module \getid3_analyze()
  2. 6 getid3.module \getid3_analyze()
  3. 7 getid3.module \getid3_analyze()

Analyze file and return its media information.

Parameters

$filepath: A string specifying a file path.

Return value

An array with the information returned by getID3.

File

./getid3.module, line 73

Code

function getid3_analyze($filepath) {
  $info = array();
  if ($id3 = getid3_instance()) {
    $info = $id3
      ->analyze($filepath);
    unset($id3);
  }
  return $info;
}