Presentation on theme: "Chapter 14 Perl-Compatible Regular Expressions Part 1."— Presentation transcript:
Chapter 14 Perl-Compatible Regular Expressions Part 1
preg_match The match function is int preg_match(string $pattern, string $str ) – 1 st argument is the pattern – 2 nd argument is the subject string – Returns number of matches found: 1 (true) if there is a match – it stops at the first match found! 0 (false) otherwise
Your consent to our cookies if you continue to use this website.