Jump to content

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


medicalboy

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.

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);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...