medicalboy Posted October 9, 2009 Share Posted October 9, 2009 i want to know what's the diffrence between while(!feof($con)) and while(feof($con)) what's the importance of (!)also @opendir($this->newsDir and opendir($this->newsDir the importance of @ Link to comment Share on other sites More sharing options...
Synook Posted October 9, 2009 Share Posted October 9, 2009 ! 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 More sharing options...
medicalboy Posted October 9, 2009 Author Share Posted October 9, 2009 ! 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 More sharing options...
Synook Posted October 9, 2009 Share Posted October 9, 2009 . 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 More sharing options...
justsomeguy Posted October 9, 2009 Share Posted October 9, 2009 You can find the complete list of PHP operators in the manual:http://www.php.net/manual/en/language.operators.php Link to comment Share on other sites More sharing options...
medicalboy Posted October 9, 2009 Author Share Posted October 9, 2009 . 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); understoodgreat job Link to comment Share on other sites More sharing options...
medicalboy Posted October 9, 2009 Author Share Posted October 9, 2009 You can find the complete list of PHP operators in the manual:http://www.php.net/manual/en/language.operators.php very helpful thanx Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.