39.1k views
1 vote
This function is used for checking or searching for patterns in a given text

Select one:

a. preg_match()

check()

b. regex()

c. regexp()

1 Answer

3 votes

Answer:

preg_match()

Step-by-step explanation:

In the question

preg_match() function is used for checking or search for patterns in a given text.

The above function performs regular expression match. It can be used to verify whether the format of data i.e. name, email, phone number etc, entered by the user was correct or not find or replace matching string within text content and so on.

User Brennan Casey
by
5.9k points