c959137 / php-excel-reader

Automatically exported from code.google.com/p/php-excel-reader
0 stars 0 forks source link

Little problem with a function in PHP4 #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The function array_combine does not exist in PHP4, so the library doesn't 
work with this PHP version.

I've replaced this function by the following:

function array_comb ($array1, $array2) {
 $out = array();
 foreach ($array1 as $key => $value) {
  $out[$value] = $array2[$key];
 }
 return $out;
}

And now it's work perfectly.

Thanks for sharing this library, it's very useful and easy to use. :)

Original issue reported on code.google.com by nunchaku...@gmail.com on 30 Mar 2009 at 1:08

GoogleCodeExporter commented 9 years ago
Fixed in version 2.21

Original comment by matthew....@gmail.com on 14 Apr 2009 at 4:05