> Oooh! I think you're on to something there. Nice!
> Hey, what's the "@" symbol for? I see in the manual the "&" is a
> reference (like a pointer in C I assume), but I can't find the "@"
> > if(@$purchitem[$y] == $x)
It'll suppress warnings and errors. If the $purchitem does not have a
key 4 or 5, like in your example, then you'll get a warning for
undefined offset, depending on your error reporting level. This just
If you do it this way, you may want to sort $purchitem if you can't
guarantee it's going to be in ascending order. Or you can use in_array()
and not care about the order.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php