The preg_match() function in PHP returns true if the pattern was found in the string and false otherwise.

  • TRUE
  • FALSE
The statement is true. In PHP, the preg_match() function is used to perform a pattern match using Regular Expressions. It returns true if the pattern was found in the string and false otherwise. The preg_match() function allows you to search for a specific pattern within a string and perform further actions based on the result. This function is commonly used in PHP to check if a string matches a particular pattern defined by a Regular Expression. Learn more: https://www.php.net/manual/en/function.preg-match.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *