Jump to content

regarding IF/ELSE statements question - why the "!@"?


Recommended Posts

Hi W3S! Been a while!

So, i have a question in relation to an if/else statement. It has been a while since ive build websites and want back in the game.

i came across a cms system last night, relatively new, it's one of my friends local build im checking out. In an if/else statement, he is putting something like this down:

!@(
  $GLOBALS["{$DB['globals']}"] = mysqli_connect(
    $DB['host'],
    $DB['user'],
    $DB['password']
  )
)

Now i know everything inside of the if/else statement, but why the "!@" in the if statement in front of it? Is it just not enough with the "!" sign?

Thanks in advance for clarification :)

Regards, rootKID.

Link to post
Share on other sites

The error suppression operator is a very hacky solution to prevent warnings. If your code needs this then there is something wrong with your code.

Link to post
Share on other sites

ok got it, thanks for information ^^'

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...