I'm don't understand what mean @
symbol before php function for example: @mysql_query()
, if someone know please explain for me.
The spaceship operator <=> is the latest comparison operator added in PHP 7. It is a non-associative binary operator with the same precedence as equality operators ( == , !=
To assign by reference, simply prepend an ampersand (&) to the beginning of the variable which is being assigned (the source variable).
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.
The at sign (@) is used as error control operator in PHP. When an expression is prepended with the @ sign, error messages that might be generated by that expression will be ignored.
It's the error suppression operator, normally not a good idea to use it as you should be trapping errors cleanly rather than simply hiding them
It will silent error messages. See http://php.net/manual/en/language.operators.errorcontrol.php
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