Programming Basics

  Home arrow Programming Basics arrow A Tour of Decision Making Structures i...
PROGRAMMING BASICS

A Tour of Decision Making Structures in PHP
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2003-10-19

    Table of Contents:
  • A Tour of Decision Making Structures in PHP
  • Comparison Operators
  • IF Statements
  • SWITCH-CASE statements
  • Conclusion

  •  
     

    SEARCH CODEWALKERS

    A Tour of Decision Making Structures in PHP


    (Page 1 of 5 )

    A comprehensive overview of the control structures available in PHP.

    Often times, people find it difficult to make a decision--we're often asking ourselves questions like, "What pair of pants should I wear to work?", "Should I really eat that extra donut?" and "Should I tell my fiancee I wear a toupee?"

    But computers have a much simpler life. Programs use logical comparisons to help make a decision and depending on the value of the statement (whether it evaluates to true or false) the program can process different sections of code.

    A logical comparison compares the value of one operation or statement with that of another to see if the overall statement resolves to either "true" or "false."

    For example, if $x has been set to 6, and $y has been set to 7, then the statement "the value of $x is less than the value of $y" would be true. Statements saying $x's value is greater than or equal to the value of $y would be false.

    More Programming Basics Articles
    More By bluephoenix

    blog comments powered by Disqus

    PROGRAMMING BASICS ARTICLES

    - The Transliteration Operator in Perl
    - Perl String Processing Functions
    - Perl String Processing
    - Control Flow Constructs: Loops Conclusion
    - Loop Control Constructs
    - Control Flow Constructs: the For and Foreach...
    - Loops and Control Flow Constructs
    - Expression Modifiers for Perl Control Flow C...
    - Logical Operators and Control Flow Constructs
    - Comparing Strings with Control Flow Construc...
    - Perl Operators and Control Flow Constructs
    - Control Flow Constructs
    - More Time Manipulation with PHP
    - Validating and Manipulating Dates with PHP
    - Using the Date Constructor in PHP

    Developer Shed Affiliates

     



    © 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap