Possible Duplicate:
What is the use of the @ symbol in PHP?
Reference — What does this symbol mean in PHP?
what does using <?php echo @$fnameerror; ?>
mean. why use @ before variable in php
It is used to pass a variable by reference.
It means pass the variable by reference, rather than passing the value of the variable.
It means "the opposite of". So if the variable contains "false", then putting "!" in front will make the result "true".
The & is used to get a reference to a variable. It's similar to references in other languages like C++, with some significant differences. See the PHP Manual's section on references. Your thinking of the @ symbol.
error control operator .. suppresses error messages ..
@ is pure evil. It's not a good idea to use. You can find an explanation about it here.
It can cause massive debugging headaches because it will even suppress critical errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With