Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP Statements and Beginning Loops
Nov 05, 2007 @ 09:34:00

DevShed has posted the latest part of their introduction to PHP series, this time focusing on one of the more useful features of the language - conditionals and loops.

We discussed statements briefly in our last article and even got a sneak peek of an IF-statement. Sure I mean, the image was blurry, and the moment it saw us it ran off into the forest. But we saw it. Honest. So in this article, we're going to take a much closer look at PHP statements and even start learning about loops.

They cover if statements (as mentioned) as well as introduce you to its companions, else and else if. The finish off the article with a brief look at one of the simpler loops, the for loop.

tagged: tutorial loop conditional statement elseif if for tutorial loop conditional statement elseif if for