Strings, arrays and numbers are second-class citizens in PHP-land. This talk describes how they can be extended to work like objects, and how clean and consistent APIs can be introduced so that you can be proud of your PHP code again.
Return values preg_match returns 1 if a pattern matches a given subject, 0 if a pattern does not match a given subject. Or false if there was an error.
Return values preg_match returns 1 if a pattern matches a given subject, 0 if a pattern does not match a given subject. Or false if there was an error.