ftp_base::glob_regexp

Advertisement

Syntax Syntax

ftp_base::glob_regexp( $pattern,  $probe )

Source Source

File: wp-admin/includes/class-ftp.php

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

Advertisement

Advertisement

Leave a Reply