browse(); // Display the list of media foreach ($mediaList as $mediaItem) { echo $mediaItem['title'] . " (" . $mediaItem['type'] . ")\n"; } ?>
search('Finding Nemo'); // Display the search results foreach ($searchResults as $result) { echo $result['title'] . " - " . $result['artist'] . "\n"; } ?>In terms of package library, it is not clear which package library getMediaServer belongs to. It could be a standalone tool or part of a larger PHP media server library.