ftp_base::glob_regexp()publicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Return

null. Nothing.

Usage

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

ftp_base::glob_regexp() code WP 6.1.1

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