Jump to content

I'm learning...but


Guest twisted

Recommended Posts

Guest twisted

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. <_<

Link to comment
Share on other sites

Guest twisted

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"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...