PHP Regular Expressions
What will be the output of the following PHP code? $foods = array("pasta", "steak", "fish", "potatoes"); $food = preg_grep("/^s/", $foods); print_r($food);
Array ( [3] => potatoes )
Array ( [0] => potatoes )
Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes )