Mecha CMS

Helper functions.

content

Return file contents if input is a valid file path, otherwise return null.

2.2.0

content(string $path);

Example:

if (null !== content('.\path\to\file.txt')) { … }