Jump to content

What's The Importance Of (!) & (@) Before Functionname


medicalboy
 Share

Recommended Posts

! is the logical NOT operator, it make things false when they were true, and true when they were false. So !true == false, and !false == true. @ is the error suppression operator*, and any expression executed with @ preceding will not report errors. Won't stop the page crashing if the error is fatal though.* edit, officially known as the error control operator.

Edited by Synook
Link to comment
Share on other sites

! is the logical NOT operator, it make things false when they were true, and true when they were false. So !true == false, and !false == true. @ is the error suppression operator, and any expression executed with @ preceding will not report errors. Won't stop the page crashing if the error is fatal though.
thanx synook for your great helpanother inquiry
$response .= fgets($con,128)

and

$response = fgets($con,128)

importance of dot (.) before =appreciated again for your help

Link to comment
Share on other sites

. is the string concatenate operator, and the syntax

$var <operator>= value;

is equivalent to

$var = $var <operator> value;

So

$response .= fgets($con,128);

represents

$response = $response . fgets($con,128);

Edited by Synook
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...