Jump to content

What is the difference?


garethhall

Recommended Posts

The @ symbol supresses errors.  It keeps your script from halting if say.... $rs_pages wasn't "a valid MySQL result resource" which is a very very common error.  It usually occurs when an SQL statement has a typo in it.. so to speak.

 

The symbol is good for debugging ... if you didn't care whether or not that line failed or not.

The symbol is good for debugging ... if you didn't care whether or not that line failed or not.

 

The symbol is awful for debugging! Please don't just use it because it's a convenient hack, check that what you're providing to the function is proper before using it as an argument.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.