sikas sikas - 1 year ago 102
PHP Question

PHP preg_match and preg_match_all functions

I would like to know what is the preg_match and the preg_match_all function and how to use.

Answer Source

preg_match stops looking after the first match. preg_match_all, on the other hand, continues to look until it finishes processing the entire string. Once match is found, it uses the remainder of the string to try and apply another match.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download