Skip to content

Latest commit

History

History
22 lines (18 loc) 路 428 Bytes

File metadata and controls

22 lines (18 loc) 路 428 Bytes

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