<<< Previous question <<< Question ID#0438.md >>> Next question >>>
What is the output of the following code?
$pattern聽=聽'/[a-z]{4}聽/';
$string聽=聽'Mary聽had聽a聽little聽lamb';
$matches聽=聽preg_match($pattern,聽$string);
print_r($matches);- A) 1
- B) 2
- C) null
- D) 4
Answer
Answer: A