Home »
MCQs »
PHP MCQs
What is the return value of preg_match() function?
127. What is the return value of preg_match() function?
- 0 or 1
- False or True
- 0, less than 1, or greater then 1
- None of the above
Answer: A) 0 or 1
Explanation:
The PHP function preg_match() return 1 if the given pattern was found in the string; 0, otherwise.