Home arrow PHP arrow PHP Statements and Beginning Loops

PHP Statements and Beginning 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.

TABLE OF CONTENTS:
  1. PHP Statements and Beginning Loops
  2. If
  3. Else
  4. Elseif
  5. Here We Go Loop de Loop
  6. For Loop
By: James Payne
Rating: starstarstarstarstar / 5
November 05, 2007

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

What's the deal with Bigfoot sightings anyway? And UFO sightings. I'm a firm believer in both mind you (the idea of a 12-foot-tall gorilla as my butler makes me all warm and fuzzy inside), but how come no one can take a video where it isn't either blurry, the camera isn't shaking, or the person spends half of the tape filming their own feet?

I mean I can understand the shaky camera part. A giant hairy dude in the middle of a forest watching you might make you tremble in your boots a little. Of course that person would also tremble watching a Robin Williams flick. If you ever need proof of a Sasquatch with a growth disorder, you need look no further. The guy looks like he stapled shag carpeting to his body.

Conditional Statements

Sometimes in a program you want to have a piece of code execute when a condition is met. To do this, you use conditional statements. There are three types of these in PHP. These are the If statement, the Else statement, and the Elseif statement.



 
 
>>> More PHP Articles          >>> More By James Payne
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: