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
array
if the subject parameter is an array, or astring
otherwise.
If no matches are found, or an error occurred, an emptyarray
is returned when subject is an array ornull
otherwise.
https://www.php.net/manual/en/function.preg-filter.php
Last modified: 2021-06-07
© 2021 universeorange.com