#105 PHP5 + 2.4.7CVS cant use += (-=) with arrays

open
nobody
None
5
2004-07-25
2004-07-25
V@no
No

Hi!
When I try add something to existing value in the array
by using += it kills the array.
example:
[php]
<?php
$a['key'] = 3;
$a['key'] += 2;
print_r($a);
?>
[/php]
the result is:
5
instead of:
Array ( [key] => 5 )

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks