Package: php4 Version: 4.3.10-16 Foreach in php normaly works with and without a given key:
foreach (array_expression as $value) statement foreach (array_expression as $key => $value) statement http://de3.php.net/manual/en/control-structures.foreach.php In the first case, without $key, foreach should behave like this: --- The first form loops over the array given by array_expression. On each loop, the value of the current element is assigned to $value --- But foreach in the package mentioned above doesn't assign the value of the current element, but the complete array. This is a test-script: <?php $aTest = array('a' => 'aaa','b' => 'bbb','c' => 'ccc'); // this produces the correct output: aaabbbccc foreach($aTest as $k => $v) { echo $v; } // this should produce the same output, but gives back // ArrayArrayArray foreach($aTest as $v) { echo $v; } ?> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]