preg_filter test
This commit is contained in:
Родитель
25b96cd53b
Коммит
e80db2fe37
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
namespace pcre\preg_filter;
|
||||
|
||||
\print_r(\preg_filter(['/quick/', '/brown/'], "x", "quick fox"));
|
||||
\print_r(\preg_filter(['/quick/', '/brown/'], "x", ["fox", "brown fox"]));
|
||||
\print_r(\preg_filter(['/quick/', '/brown/'], "x", ["fox", "red fox"]));
|
||||
|
||||
echo "Done.";
|
Загрузка…
Ссылка в новой задаче