[PHP] Re: What's wrong with the Array? I"m baffled!

2002-04-05 Thread Michael Virnstein
> $number = $sumItUp[$name]; > $number++; > $sumItUp[$name] = $number; this could be done easier: $sumItUp[$name]++; :) "Scott Fletcher" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > > I'm a little baffled on why the array is not working t

[PHP] Re: What's wrong with the Array? I"m baffled!

2002-04-03 Thread Maxim Maletsky
it is obvious, Scott: > if ($sumItUp[$name] == "") { is like to say "if $sumItUp[$name] is an empty string". Means, that if it was not assigned, or if it contains any kind of character in it this will result to false. Try using this: if(isset($sumItUp[$name]) and strlen($sumItUp[$n