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.