libs/helpers/SystemHelper.php
public static function checkFileContainsStr($filename, $needle)
    {
        if (file_exists($filename)) {
            $content = file_get_contents($filename);

            if (strstr($content, $needle)) {
                return true;
            }
        }

        return false;
    }
public static function checkFileContainsStr($filename, $needle)
    {
        if (file_exists($filename)) {
            $content = file_get_contents($filename);

            if (strstr($content, $needle)) {
                return true;
            }
        }

        return false;
    }
public static function checkFileContainsStr ( $ filename , $ needle ) { if ( file_exists ( $ filename ) ) { $ content = file_get_contents ( $ filename ) ; if ( strstr ( $ content , $ needle ) ) { return true ; } } return false ; }
Check if given file contains given string
@param  String $filename
@param  String $needle
@return Boolean
Check if given file contains given string