WP_MatchesMapRegex::apply

Advertisement

Summery Summery

Substitute substring matches in subject.

Syntax Syntax

WP_MatchesMapRegex::apply( string $subject, array $matches )

Description Description

static helper function to ease use

Parameters Parameters

$subject

(string) (Required) subject

$matches

(array) (Required) data used for substitution

Return Return

(string)

Source Source

File: wp-includes/class-wp-matchesmapregex.php

	public static function apply( $subject, $matches ) {
		$oSelf = new WP_MatchesMapRegex( $subject, $matches );
		return $oSelf->output;
	}

Advertisement

Advertisement

Leave a Reply

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