• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/10

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

10 Cards in this Set

  • Front
  • Back
What is the difference between a WAMP, a MAMP, and a LAMP?
WAMP stands for “Windows, Apache, MySQL, and PHP,” while the M in MAMP
stands for Mac instead of Windows and the L in LAMP stands for Linux. They all
refer to a complete solution for hosting dynamic web pages.
Are the operators && and and interchangeable?
Generally, the operators && and and are interchangeable except where precedence
is important, in which case && has a high precedence while and has a low one.
How can you create a multiline echo or assignment?
You can use multiple lines within quotation marks or the <<< _END ... _END construct
to create a multiline echo or assignment.
How do you convert one variable type to another (say, a string to a number)?
To convert one variable type to another, reference it and PHP will automatically
convert it for you.
What is the difference between ++$j and $j++?
There is no difference between ++$j and $j++ unless the value of $j is being tested,
assigned to another variable, or passed as a parameter to a function. In such cases,
++$j increments $j before the test or other operation is performed, whereas $j++
performs the operation and then increments $j.
Can you redefine a constant?
You cannot redefine constants because, by definition, once defined they retain their
value until the program terminates.
What is the difference between the echo and print commands?
The echo and print commands are similar, except that print is a PHP function and
takes a single argument while echo is a construct that can take multiple arguments.
How can you make a variable accessible to all parts of a PHP program?
You can make a variable accessible to all parts of a PHP program by declaring it as
global.
If you generate data within a function, what are a couple of ways to convey the
data to the rest of the program?
If you generate data within a function, you can convey the data to the rest of the
program by returning a value or modifying a global variable.
What is the result of combining a string with a number?
When you combine a string with a number, the result is another string.