A
Q. What is the result of the following PHP code?
Code:
<?php
$names = array("alex", "jean", "emily", "jane");
$name = preg_grep("/^e/", $names);
print_r($name);
?>
$names = array("alex", "jean", "emily", "jane");
$name = preg_grep("/^e/", $names);
print_r($name);
?>
- Correct Answer - Option(C)
- Views: 9
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.