PHP Functions array fill

posted by Scudyen date: Thursday, May 22, 2008 category: PHP

array_fill() fills an array with num entries of the value of the value parameter, keys starting at the start_index parameter. Note that num must be a number greater than zero, or PHP will throw a warning.

array_fill() example :

<?php
$links
= array_fill(5, 6, 'http://www.gazatem.com');
echo ($links);
?>

Outpt of this example :


Array ( [5] => http://www.gazatem.com [6] => http://www.gazatem.com [7] => http://www.gazatem.com [8] => http://www.gazatem.com [9] => http://www.gazatem.com [10] => http://www.gazatem.com )

Read More

Custom Search



Gazatem Technologies Active News Manager


page counter

Listed with 411asp.net Listed with 4aspin.com