Jump to content

bugs in php tutorial

Recommended Posts

Both are legal in PHP. There is a small difference that you can read about here.


There is also a widely used set of coding recommendations out there that says this:



The keyword elseif SHOULD be used instead of else if so that all control keywords look like single words.

I personally ignore a lot of those recommendations, but if you are ever employed as a developer, you may be required to use them. (You might also be required to use a different set, too.)

Edited by Deirdre's Dad
Link to post
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.

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