ftp_base::glob_regexppublicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ftp_base = new ftp_base();
$ftp_base->glob_regexp( $pattern, $subject );
$pattern(required)
.
$subject(required)
.

ftp_base::glob_regexp() code WP 7.0

function glob_regexp($pattern,$subject) {
	$sensitive=(PHP_OS!='WIN32');
	return ($sensitive?
		preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $subject ) :
		preg_match( '/' . preg_quote( $pattern, '/' ) . '/i', $subject )
	);
}