'@' symbol in php, e.g. '@$name[1]'? -


all,

What does the '@' symbol in PHP mean? For example, what does this mean in the statement:

  $ sd = (@ $ argv [1])? Meet (Strawight ($ argv [1])): Meet ();  

Do I understand the turner operator? ', But I do not know what' @ 'means ...

The code is the sample code (great!) Cs75.net Harvard Extension Course.

Thanks,

JDelage

@ which can be produced during the function (or expression)

PHP supports an error control operator: Sign in (@). When PHP is ready for an expression, then any error message arising from that expression will be ignored.

The error suppression should probably be avoided because it is not only preventing you from pressing the error but you are trying to stop them but they will also try to suppress the errors Did not. This will require a nightmare to be debugged.


Comments