preg_match() function preg_match function searches strings for patterns and it returns true when pattern is found and returns false if it doesn’t. Typically, search begins from the starting point of subject string. The parameter offset can be used to define the exact position from which to begin the search. Syntax: int preg_match( $pattern, $input, $matches, $flags, $offset… Continue reading PHP | preg_match() function