Ask HN: Purpose of the AT operator in PHP?
3 comments
Three years of debugging and writing code and I have never seen an @ used, I would consider getting rid of the key but I need the darned thing for logging in to my hotmail :(
I'm looking for a reference to the @ operator being used to suppress spurious module errors. I'd not spent the last decade oblivious to the PHP manual.
Anyway, after seeing it come up as part of many arguments against PHP and realising it is actually used by developers in everyday error handling! I've tried to find a reference to it's correct use in the docs, source and web but to no avail.
Does anyone else remember it as I do, or is this just a figment of my imagination.