Posted by Phil on 11/21/58 11:21
Peter Butler wrote:
> if ($a==a && $b==a && $c==a && $d==a && $e==a && $f==a && $g==a && $h==a
> && $i==a && $j==a)
> { do thing AA}
[snip]
Haven't got time to look at this in detail, but my first thought is that,
rather than using separate variables - $a, $b etc - you should probably be
using an array - $mystuff['a'], $mystuff['b'] - you could then use
array_walk or foreach to cycle through the array, perhaps in a function to
which you pass the 'odd man out' or other conditions as parameters.
@+
[Back to original message]
|