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

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

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