SproutCMS

This is the code documentation for the SproutCMS project

function checkFileContentsExtension()

Checks file contents match the extension

Usage

boolean|null File::checkFileContentsExtension ( string $filename , string $ext );

Arguments

  1. string $filename
    The full path/filename of the file to check
  2. string $ext
    The supplied file extension

Return value

  • boolean
    True if the file matches, false if it doesn't
  • null
    If there isn't a check for the supplied extension