PHP
  Home arrow PHP arrow Page 5 - PHP Statements and Beginning Loops
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

PHP Statements and Beginning Loops
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 5
    2007-11-05


    Table of Contents:
  • PHP Statements and Beginning Loops
  • If
  • Else
  • Elseif
  • Here We Go Loop de Loop
  • For Loop

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    PHP Statements and Beginning Loops - Here We Go Loop de Loop
    ( Page 5 of 6 )

    You ever have one of those jobs where you do the same thing over and over all day, every day? Sure you have. Take the job of hamburger flipper. Before becoming the web's writer extraordinaire, I once worked at a burger restaurant. They sat me through orientation and gave me a giant book to study (which I never did; it was burger flipping, not rocket science). Then they told me my title and I was baffled: Top Bun Operator. Again: Top Bun Operator. No kidding. One guy "operated" the top bun and was responsible for its toppings, while a second guy was the Bottom Bun Operator. Apparently doing the whole bun was much too complicated.

    One day, though , I became the Neo of the hamburger world. I was operating not only the top bun and the bottom bun, but the hot dog bun as well. All around me employees were betting their $5.25 an hour salaries and yelling "He's a madman!"

    After that I quit, because let's face it: I had taken the job as far as it could go.

    Can you imagine the poor dunce that gets reprimanded for not knowing how many pickle slices go on the top bun?

    Anyway. Loops in PHP (and other programming languages) make the computer do repetitive tasks for you. I mean, that is what computing is all about. The are several types of loops, starting with the For Loop.



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

       

    PHP ARTICLES

    - Using Directory Iterators to Build Loader Ap...
    - Using the spl_autoload() Functions to Build ...
    - Working Out of the Object Context to Build L...
    - Using the _autoload() Magic Function to Buil...
    - The Destruct Magic Function in PHP 5
    - The Autoload Magic Function in PHP 5
    - Developing a Recursive Loading Class for Loa...
    - The Sleep and Wakeup Magic Functions in PHP 5
    - Using the Clone Magic Function in PHP 5
    - Including Files Recursively with Loader Appl...
    - The Call Magic Function in PHP 5
    - Designing a Captcha System with PHP and MySQL
    - Using Static Methods to Build Loader Apps in...
    - The Isset and Unset Magic Functions in PHP 5
    - Advanced PHP Form Input Validation to Check ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT