Substitute substring matches in subject.
Description
static helper function to ease use
Parameters
$subject
stringrequired- subject
$matches
arrayrequired- data used for substitution
Source
public static function apply( $subject, $matches ) {
$result = new WP_MatchesMapRegex( $subject, $matches );
return $result->output;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.