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?

<code>
1 <?php
2 $str = “The cat sat on the roof of their house.”;
3
4 $matches = preg_split(“/(the)/i”, $str, -1,
PREG_SPLIT_DELIM_CAPTURE);
5 ?>
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
2

B.
3

C.
4

D.
7

E.
9


Leave a Reply

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