IntroPHP Basics (1-5)

Card Set Information

Author:
dalbabes
ID:
102249
Filename:
IntroPHP Basics (1-5)
Updated:
2012-07-26 11:36:09
Tags:
PHP
Folders:

Description:
PHP basics.
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user dalbabes on FreezingBlue Flashcards. What would you like to do?


  1. Opposite of a compiled language
    PHP
  2. LAMP
    Linux, Apache, MySQL, PHP
  3. Code brackes and comments in PHP
    • <?
    • /* this is multilined
    • */
    • #single line
    • //single line
    • ?>
  4. Variables in php start with what?
    $

    can't start with a number or contain special character
  5. command for printing html code
    echo " this is the code "
  6. Concate operator that connects things
    .
  7. Operators for
    And
    OR
    Exclusive OR
    • &&
    • ||
    • XOR - As in both can't be right.
  8. How does a while loop work?
    • while (certain condition bob > joe) {
    • run this code
    • increment a variable
    • }
  9. for loop how does it run
    • for (establish variable; condition;increment) {
    • run code
    • }
  10. Whats a switch statement and how is it run?
    • The statement looks at a expression, such as a variable, and then evaluates each case to see if it fits the expression. Break makes it so that it does run to the next expression. Default is at the end for something that doesn't match anything.
    • switch ($variable){
    • case "condtion to match": '
    • code to be executed if n=label1;
    • break;
    • default: code to be executed if n is different from both label1 and label2;}

What would you like to do?

Home > Flashcards > Print Preview