Saved X
Google login
SignUp with Email
X

Php array_fill

theindreshverma ( Added  May 07, 10:53 pm )
Login

<?php
// array_fill(start index, count, value)
$a = array_fill(5, 6, 'banana');
$b = array_fill(-2, 4, 'pear');
print_r($a);
print_r($b);
?>

Sourcecode Tags

More Sourcecodes

More Sourcecodes