WP_MatchesMapRegex::__constructpublicWP 1.0

constructor

Method of the class: WP_MatchesMapRegex{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WP_MatchesMapRegex = new WP_MatchesMapRegex();
$WP_MatchesMapRegex->__construct( $subject, $matches );
$subject(string) (required)
subject if regex.
$matches(array) (required)
data to use in map.

WP_MatchesMapRegex::__construct() code WP 7.0

public function __construct( $subject, $matches ) {
	$this->_subject = $subject;
	$this->_matches = $matches;
	$this->output   = $this->_map();
}