WP_MatchesMapRegex::apply( string $subject, array $matches )
Substitute substring matches in subject.
Description
static helper function to ease use
Parameters
- $subject
-
(string) (Required) subject
- $matches
-
(array) (Required) data used for substitution
Return
(string)
Source
File: wp-includes/class-wp-matchesmapregex.php
public static function apply( $subject, $matches ) { $oSelf = new WP_MatchesMapRegex( $subject, $matches ); return $oSelf->output; }
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_matchesmapregex/apply