WordPress at a glance
function is not described

getid3_lib::EmbeddedLookup() public WP 1.0

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

String.

Usage

$result = getid3_lib::EmbeddedLookup( $key, $begin, $end, $file, $name );
$key(string) (required)
-
$begin(int) (required)
-
$end(int) (required)
-
$file(string) (required)
-
$name(string) (required)
-

Code of getid3_lib::EmbeddedLookup() WP 5.7.2

<?php
public static function EmbeddedLookup($key, $begin, $end, $file, $name) {

	// Cached
	static $cache;
	if (isset($cache[$file][$name])) {
		return (isset($cache[$file][$name][$key]) ? $cache[$file][$name][$key] : '');
	}

	// Init
	$keylength  = strlen($key);
	$line_count = $end - $begin - 7;

	// Open php file
	$fp = fopen($file, 'r');

	// Discard $begin lines
	for ($i = 0; $i < ($begin + 3); $i++) {
		fgets($fp, 1024);
	}

	// Loop thru line
	while (0 < $line_count--) {

		// Read line
		$line = ltrim(fgets($fp, 1024), "\t ");

		// METHOD A: only cache the matching key - less memory but slower on next lookup of not-previously-looked-up key
		//$keycheck = substr($line, 0, $keylength);
		//if ($key == $keycheck)  {
		//	$cache[$file][$name][$keycheck] = substr($line, $keylength + 1);
		//	break;
		//}

		// METHOD B: cache all keys in this lookup - more memory but faster on next lookup of not-previously-looked-up key
		//$cache[$file][$name][substr($line, 0, $keylength)] = trim(substr($line, $keylength + 1));
		$explodedLine = explode("\t", $line, 2);
		$ThisKey   = (isset($explodedLine[0]) ? $explodedLine[0] : '');
		$ThisValue = (isset($explodedLine[1]) ? $explodedLine[1] : '');
		$cache[$file][$name][$ThisKey] = trim($ThisValue);
	}

	// Close and return
	fclose($fp);
	return (isset($cache[$file][$name][$key]) ? $cache[$file][$name][$key] : '');
}