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

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

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -