Key is an undefined function?

From: Date: Thu, 16 May 2002 21:42:30 +0000
Subject: Key is an undefined function?
Groups: php.general 
Request: Send a blank email to php-general+get-97980@lists.php.net to get a copy of this message
Fatal error: Call to undefined function: key() in /var/www/explorer/test.php on line 18 When it's listed right here: http://www.php.net/manual/en/function.key.php I was playing with the library from: http://phpconcept.free.fr/pclzip/index.en.php This is the code: ---------------------------------------------------------------------------------------- <?php include ("pclzip.lib.php"); $zip = new PclZip("test.zip"); $list = array(); $list = $zip->listContent(); //print_r($list); for ($i = 0 ; $i <= count($list); $i++) { for ( reset($list[$i]); $keyloc = key($list[$i]); next($list[$i]) ) { echo "File $i / [$keyloc] = " . $list[$i][$keyloc] . "<br>"; } echo "<BR>"; } ?>

« previous php.general (#97980) next »