Posted by: Pdfprep
Post Date: November 9, 2020
How many elements does the array $matches from the following code contain?
$str = "The cat sat on the roof of their house.";
$matches= preg_split("/(the)/i", $str, -1, PREG_SPLIT_DELIM_CAPTURE);
A . 2
B . 3
C . 4
D . 7
E . 9
Answer: D
Leave a Reply