To be more precise - not necessarily false
but a falsy value like false, null, 0, empty string or empty array. preg_match
normally returns a number 0 or 1. false
is returned when there is an error (the regex is incorrect).
To be more precise - not necessarily false
but a falsy value like false, null, 0, empty string or empty array. preg_match
normally returns a number 0 or 1. false
is returned when there is an error (the regex is incorrect).