kernel
[ class tree: kernel ] [ index: kernel ] [ all elements ]

Source for file array_fill.func.php

Documentation is available at array_fill.func.php

  1. <?php
  2. /**
  3.  * @package kernel
  4.  * @subpackage functions
  5.  */
  6.  
  7. // For PHP version < 4.2.0 missing the array_fill function,
  8. // I provide here an alternative. -Philippe
  9. // taken from http://de3.php.net/manual/en/function.array-fill.php comments. thanks jausion at hotmail-dot-com
  10.  
  11. /**
  12.  * array_fill
  13.  */
  14. if!function_exists'array_fill' ) ) {
  15.     function array_fill($iStart$iLen$vValue{
  16.         $aResult array();
  17.         for ($iCount $iStart$iCount $iLen $iStart$iCount++{
  18.             $aResult[$iCount$vValue;
  19.         }
  20.         return $aResult;
  21.     }
  22. }
  23.  
  24. ?>

Documentation generated on Wed, 29 Jul 2015 13:55:34 +0000 by phpDocumentor 1.5.0-lsces