Guest twisted Posted July 12, 2005 Share Posted July 12, 2005 In a line of code such as : if(($i % columns) == ($columns - 1) || ($i + 1) == $count) what is the purpose/function of the " || " ? Just in the pursuit of expanding my knowledge of php. <_< Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2005 Share Posted July 12, 2005 it means "or" Quote Link to comment Share on other sites More sharing options...
Guest Posted July 13, 2005 Share Posted July 13, 2005 As djonkers said, it's OR && = AND || = OR Quote Link to comment Share on other sites More sharing options...
Guest twisted Posted July 16, 2005 Share Posted July 16, 2005 so can you use "and" or "or" in place of && or ||, or is there a special reason for using it in that format? *Meaningless [but damn funny] quote* "Void where prohibited by law, excpet where such prohibition is prohibited by law" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.