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

    TOOLS YOU CAN USE

    advertisement

    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

    - More Time Manipulation with PHP
    - Validating and Manipulating Dates with PHP
    - Using the Date Constructor in PHP
    - Calendar Construction with PHP
    - PHP`s Calendar Package
    - Getting Modified Versions and Correct Dates ...
    - Combining Date Functions in PHP
    - Using PHP for Date and Time in Programming
    - More Exception Handling with PHP
    - Exception Handling in PHP
    - Error Logging and Handling Exceptions
    - Configuration Directives for Error and Excep...
    - Error and Exception Handling
    - Python Modules for Games
    - Python in Game Development


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