ftp_base::glob_regexp()publicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Return

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 6.5.2

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