Articles Posted in the " array_fill " Category

  • array_fill

    array_fill

    Syntax:array array_fill ( int $start_index , int $num , mixed $value ) Description:Fill an array with values <?php $a = array_fill(5, 6, 'banana'); $b = array_fill(-2, 4, 'pear'); print_r($a); print_r($b); ?> OUTPUT Array ( […]