|
Posted by Phil on 10/02/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.
@+
Navigation:
[Reply to this message]
|