/ Published in: PHP
Search and returns the first results on a regex search
If we use parenthesized or subpattern, can return with $result_number
If we use parenthesized or subpattern, can return with $result_number
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function preg_match_first($pattern,$string,$result_number=null) { }