[PHP] Re: What's wrong with the Array? Im 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 the way I

[PHP] Re: What's wrong with the Array? Im 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