Universeorange.com/Docs/
{preg.filter(String | Array $pattern, String | Array $replacement, String | Array $subject, Int $limit=-1, String $count)}
Perform a regular expression search and replace.
{preg.filter()} is identical to {preg.replace()} except it only returns the (possibly transformed) subjects where there was a match.
For details about how this function works, read the {preg.replace()} documentation.
Returns an
arrayif the subject parameter is an array, or astringotherwise.
If no matches are found, or an error occurred, an emptyarrayis returned when subject is an array ornullotherwise.
https://www.php.net/manual/en/function.preg-filter.php
Last modified: 2021-06-06
© 2021 universeorange.com