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

This site uses Akismet to reduce spam. Learn how your comment data is processed.