-
What will be the output of the following PHP code?
<?php
$Name1 = array_fill(2, 3, "Ajit Kumar Gupta");
$Name2 = array_fill(1, 2, "Ats Yogi");
print_r($Name1);
print_r($Name2);
?>
-
-
Array
(
[2] => Ajit Kumar Gupta
[3] => Ajit Kumar Gupta
[4] => Ajit Kumar Gupta
)
Array
(
[1] => Ats Yogi
[2] => Ats Yogi
) -
Array
(
[2] => Ajit Kumar Gupta
[3] => Ajit Kumar Gupta
[4] => Ajit Kumar Gupta
) -
Array
(
[1] => Ats Yogi
[2] => Ats Yogi
) -
Array
(
[2] => Ajit Kumar Gupta
[4] => Ajit Kumar Gupta
)
Array
(
[2] => Ats Yogi
) - None of these
-
Correct Option: A
The array_fill() function fills an array with values.