Vidyalelo
PHP · Q23

Regular Expressions

Programming · PHP · question 23

Q23

Which one of the following functions is used to search a string?

A.
preg_match
Answer
B.
preg_search
C.
preg_find
D.
preg_found

Answer: Option A

Solution

Answer: Option A
Solution:
The function returns 1 if search was successful else returns 0.