Q:

What will be the output of the following PHP code?

0

What will be the output of the following PHP code?

<?php
$a1 = array_fill(3, 4, "blue");
$b1 = array_fill(0, 1, "red");
print_r($a1);
echo "<br>";
print_r($b1);
?>

  1. Array ( [3] => blue [4] => blue)
  2. Array ( [4] => blue [5] => blue [6] => blue)
  3. Array ( [3] => blue [4] => blue [5] => blue [6] => blue )
  4. Array ( [3] => blue [4] => blue [5] => blue [6] => blue )

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (d).Array ( [3] => blue [4] => blue [5] => blue [6] => blue )

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now