filling an array with all 0's
Posted 19 August 2006 - 09:14 AM
Is there a built-in function for this? Like I know for strings, I can use str_repeat...but what about arrays?
Posted 19 August 2006 - 09:31 AM
Donations gratefully received
|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
Posted 19 August 2006 - 10:31 AM
<?php $array = array_fill(0,9,'0'); ?>
Will make ten keys with the value 0.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users