Posted by Kim Andrι Akerψ on 11/13/06 16:38
Dikkie Dik wrote:
> mantrid wrote:
> > in some php script ive seen
> >
> > $something['something']==@$somethingelse
> > whereas
> > something['something']==$somethingelse
> >
> > works the same
> > what does the use of the @ do?
> > Sorry if this is a stupid question
> >
> It suppresses error messages. I call it the drop-dead-symbol. As in :
> "Drop dead. I don't care if it works." If you have any colleagues
> that use that symbol too often, you know what I mean...
Personally, I use this symbol when I want to provide my own error
message or return value (such as when a function is unable to connect
to a server).
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|