Question -
What will be the output of the following PHP code?$foods = array("pasta", "steak", "fish", "potatoes");$food = preg_grep("/^s/", $foods);print_r($food);
Options:
A .  Array ( [1] => steak )
B .  Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes )
Submit Your Solution hear: