Which one of the following functions is used to search a string?
A. preg_match
B. preg_search
C. preg_find
D. preg_found
Answer: Option A
Solution(By Examveda Team)
The function returns 1 if search was successful else returns 0.Related Questions on Regular Expressions
A. 1 and 2
B. 2 and 4
C. 1 and 4
D. 2 and 3
Join The Discussion