What is the return value of preg_match() function?

127. What is the return value of preg_match() function?

  1. 0 or 1
  2. False or True
  3. 0, less than 1, or greater then 1
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.