src/Presets/FilesystemTrait.php
protected function stringHasStatement( $haystack, $needle ) {
		$pattern = '~^\s*(' . preg_quote( $needle, '~' ) . ')\s*$~m';
		return (bool) preg_match( $pattern, $haystack );
	}
protected function stringHasStatement( $haystack, $needle ) {
		$pattern = '~^\s*(' . preg_quote( $needle, '~' ) . ')\s*$~m';
		return (bool) preg_match( $pattern, $haystack );
	}
protected function stringHasStatement ( $ haystack , $ needle ) { $ pattern = '~^\s*(' . preg_quote ( $ needle , '~' ) . ')\s*$~m' ; return ( bool ) preg_match ( $ pattern , $ haystack ) ; }
Get whether a string has a given statement present.

@param  string  $haystack
@param  string  $needle
@return boolean
Get whether a string has a given statement present .