Vidyalelo
PHP · Q12

Regular Expressions

Programming · PHP · question 12

Q12

What will be the output of the following PHP code?

A.
Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes )
B.
Array ( [3] => potatoes )
C.
Array ( [1] => steak )
Answer
D.
Array ( [0] => potatoes )

Answer: Option C

Solution

Answer: Option C
Solution:
This function is used to search an array for foods beginning with s.