package_get_contents

Description

Gets the contents of a file using either file_get_contents or the package cache.

Syntax

string package_get_contents (string $filename)



Parameter $filename

Expected type: String
Description: The name of the file to get the contents of



Return value

Expected type: String
Description: The contents of the specified file


Notes

  • Depends on the package_cache_disable setting
  • Uses file_get_contents if the package cache isn't available or the specified file isn't in the package cache
  • Returns the contents of the specified file
Advertisement: