WordPress at a glance
function is not described

getid3_quicktime::search_tag_by_key() public WP 1.0

Helper functions for m4b audiobook chapters code by Steffen Hartmann 2015-Nov-08.

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

No Hooks.

Return

null. Nothing.

Usage

$getid3_quicktime = new getid3_quicktime();
$getid3_quicktime->search_tag_by_key( $info, $tag, $history, $result );
$info(array) (required)
-
$tag(string) (required)
-
$history(string) (required)
-
$result(array) (required) (passed by reference — &)
-

Code of getid3_quicktime::search_tag_by_key() WP 5.7.2

<?php
public function search_tag_by_key($info, $tag, $history, &$result) {
	foreach ($info as $key => $value) {
		$key_history = $history.'/'.$key;
		if ($key === $tag) {
			$result[] = array($key_history, $info);
		} else {
			if (is_array($value)) {
				$this->search_tag_by_key($value, $tag, $key_history, $result);
			}
		}
	}
}