What would be the output of the following code?
<?php
$arr = array("foo",
"bar",
"baz");
for ($i = 0; $i < count($arr); $i++) {
$item = $arr[$i];
}
echo "<pre>";
print_r($item);
echo "</pre>";
?>
Correct Answer: baz
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP MCQ Questions