What does the @ sign do when preceding a variable in PHP -


i see code looks this:

if(@$_post['myvar']) 

what @ sign in instance?

it suppresses , error messages, warnings, or notifications caused expression you've prepended to. in case: if(@$_post['myvar']) being used because original author did not want notification emitted if $_post['myvar'] unset.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -