ID: 14763
Updated by: georg
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating System:
PHP Version: 4.1.1
New Comment:
In first case, when you write to the array "[]" is a
synonym for count($array)
In second case, if you read from array
ID: 14763
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System:
PHP Version: 4.1.1
New Comment:
$b = $a[]
would be
$b = $a[count($a)-1], not $b = $a[count($a)]
Previous Comments:
---
ID: 14763
Updated by: georg
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System:
PHP Version: 4.1.1
New Comment:
There is no need to make an array '$a[]' readable.
$a[] = "foo";
is short for
$a[count($a)] = "foo";
if $a[] would be readable, r