Bug #1591: bigmanual.html -- rsort example
| From: | joel at mobila dot cx | Date: | Wed, 23 Jun 1999 21:36:26 +0000 |
| Subject: | Bug #1591: bigmanual.html -- rsort example | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7479@lists.php.net to get a copy of this message | ||
From: joel@mobila.cx
Operating system: Linux 2.2.9
PHP version: 3.0.9
PHP Bug Type: Documentation problem
Bug description: bigmanual.html -- rsort example
This is the example code for rsort:
$fruits = array("lemon","orange","banana","apple");
rsort($fruits);
for(reset($fruits); ($key,$value) = each($fruits); ) {
echo "fruits[$key] = ".$value."\n";
}
When I tried this I got the following error:
Parse error: parse error in /home/www/htdocs/test.php3 on line 6
Sorry. But I have no idea what causes this problem. I began learning PHP3 today... =) (...and
I'm allready reporting bugs :)