$html = load_file('index.html');
$config = load_file('config.ini');
$data = load_file('data.json'); $array = json_decode($data, true);In this example, a JSON file named 'data.json' is loaded into the $data variable. Then, it is decoded into an associative array using the json_decode function. Package/library: The load_file function is part of the PHP core and does not require any additional package or library.