medicalboy Posted October 9, 2009 Report Share Posted October 9, 2009 (edited) 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 @ Edited October 9, 2009 by medicalboy Link to comment Share on other sites More sharing options...
Synook Posted October 9, 2009 Report Share Posted October 9, 2009 (edited) ! 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 October 9, 2009 by Synook Link to comment Share on other sites More sharing options...
medicalboy Posted October 9, 2009 Author Report 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 Report Share Posted October 9, 2009 (edited) . 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 October 9, 2009 by Synook Link to comment Share on other sites More sharing options...
justsomeguy Posted October 9, 2009 Report 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 Report 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 Report 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
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 accountSign in
Already have an account? Sign in here.
Sign In Now