Home > Q&A > body text
<?
$zz = '/gg.gg/';
$string = "ABC1ABC";
$if(preg_match($zz, $string,$matches)){
echo 'Matched, the result is:';
var_dump($matches);
}else{
echo 'No match';
}
?>
Why the match failed, I don't understand. . .
nearest2017-07-25 13:48:05
$string = "ggABC1ABCgg";
I haven’t turned around yet, but I understand now. Thank you~
Reply to phpcn_u10161: What does it mean? I still don’t understand this example?
come on
PHP中文网2017-07-22 09:11:28
What the hell is '/gg.+gg/'?
This is what the course looks like