Thanks
Whats the @ sign?
Moderator: General Moderators
Whats the @ sign?
I see the @ sign frequently at the beginning of function or variable names. None of my ebooks mention it. Whats that?
Thanks
Thanks
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
There aren't generic ways round it, just a couple of functions that can help in very specific circumstances. PHP5 is supposed to address this problem, allowing us to use java-style try {} catch () syntax, which is what this whole @-thing is trying to do 
It's not the best, but it's sometimes the only way round a poorly-coded function that craps out when conditions aren't 100% as expected.
It's nowhere near as evil as eval(). That's the most evil function in existance.
It's not the best, but it's sometimes the only way round a poorly-coded function that craps out when conditions aren't 100% as expected.
It's nowhere near as evil as eval(). That's the most evil function in existance.