Answers for "preg_match_all()"

CSS
0

preg_match_all()

<?php
$str = "The rain in SPAIN falls mainly on the plains.";

  $pattern = "/ain/i";
echo preg_match_all($pattern, $str); // Outputs 4
?>
Posted by: Guest on September-16-2021

Code answers related to "preg_match_all()"

Browse Popular Code Answers by Language