> $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
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
2 matches
Mail list logo