[PHP] Re: Error suppression operator (@)

2005-05-05 Thread Rory Browne
ditto everyone who said use it if you don't care about errors, but don't use it in places where you expect errors. Also don't use it in places where it can be avoided with minimal cost. For example if you have an optional field, and people usually fill it in, and rarely leave it empty, then you c

[PHP] Re: Error suppression operator (@)

2005-05-04 Thread Jason Barnett
GamblerZG wrote: I would like to know, whether using @ is a good practice. For example, I have an array of unknown length $array. Is it all right write something like this: @list($first, $second) = $array; or is it better to do length check? Using @ is good practice in any case where you simply *