PrepAway - Latest Free Exam Questions & Answers

How many elements does the array $matches from the following code contain?

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);

PrepAway - Latest Free Exam Questions & Answers

A.
3

B.
9

C.
4

D.
2

E.
7


Leave a Reply

Your email address will not be published. Required fields are marked *