'width', 'hauteur'=>'height','duree'=>'duration','framerate'=>'framerate'); foreach ($keys as $m=>$k) { if (($i = strpos($raw, $k))>-1){ $bytes = substr($raw, $i+strlen($k)+1, 8); if ($bigindian) $bytes = strrev($bytes); $zz = unpack("dflt", $bytes); // unpack the bytes $meta[$m] = $zz['flt']; // return the number from the associative array } } } return $meta; } ?>