| 3 | 
 //    $Id$ | 
 //    $Id$ | 
| 4 | 
 //    ----------------------------------------------------------------------------- | 
 //    ----------------------------------------------------------------------------- | 
| 5 | 
 //    $Log$ | 
 //    $Log$ | 
| 6 | 
  | 
 //    Revision 1.3  2002/12/11 01:00:22  joko | 
| 7 | 
  | 
 //    + renamed function 'sai' to 'array_init' | 
| 8 | 
  | 
 // | 
| 9 | 
 //    Revision 1.2  2002/12/01 04:49:54  joko | 
 //    Revision 1.2  2002/12/01 04:49:54  joko | 
| 10 | 
 //    + function Dumper (from function dumpVar) | 
 //    + function Dumper (from function dumpVar) | 
| 11 | 
 // | 
 // | 
| 57 | 
 } | 
 } | 
| 58 | 
  | 
  | 
| 59 | 
 // ------------------------------------------------- | 
 // ------------------------------------------------- | 
| 60 | 
 // sophisticated array init | 
 // array initializer | 
| 61 | 
 // initializes passed variable (taken by reference) with an empty array | 
 // initializes passed variable (taken by reference) with an empty array | 
| 62 | 
 // does this only if it doesn't exist yet or initialization is explicitely requested ($clear = 1) | 
 // does this only if it doesn't exist yet or initialization is explicitely requested ($clear = 1) | 
| 63 | 
 function sai(&$var, $clear = 0) { | 
 function array_init(&$var, $clear = 0) { | 
| 64 | 
   if (!is_array($var) || $clear) { $var = array(); } | 
   if (!is_array($var) || $clear) { $var = array(); } | 
| 65 | 
 } | 
 } | 
| 66 | 
    | 
    |