]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/array_fill.func.php
commit changes
[bacula/bacula] / gui / bacula-web / array_fill.func.php
1 <?php
2
3 // For PHP version < 4.2.0 missing the array_fill function,
4 // I provide here an alternative. -Philippe
5
6 function array_fill($iStart, $iLen, $vValue) {
7         $aResult = array();
8     for ($iCount = $iStart; $iCount < $iLen + $iStart; $iCount++) {
9         $aResult[$iCount] = $vValue;
10     }
11     return $aResult;
12 }
13                        
14 ?>