perl array increment equivalent in php
Posted: Wed Sep 29, 2010 12:38 am
Hi,
In perl, I can increment an array member by using this:
$strings{$1}++
what I want to do is assign a value to a dynamic array member ($i will be a variable) and increase in programatically.
is there something similar in php???
thanks in advance!
In perl, I can increment an array member by using this:
$strings{$1}++
what I want to do is assign a value to a dynamic array member ($i will be a variable) and increase in programatically.
is there something similar in php???
thanks in advance!