Discussion Question 2

Ashley Crawford

Echo Statements
This is an echo statement without parentheses.
This is an echo statement with parentheses.


These are echo statements

with

HTML markup and

multiple parameters.



This is an echo statement made using double quotes that displays variables. This is the first variable

and this is the second variable.



This is an echo statement made using single quotes!

When you use single quotes, variables have to be input with the . operator.



Print Statements
This is a print statement without parentheses.
This is a print statement with parentheses

This is a PHP print statement

with HTML

markup!!!



This is PHP print statement that displays variables

using double quotes!



This is PHP print statement that displays variables

using single quotes. Variables have to be input with the . operator.



This is a printf statement. There are 7 days in a week.
This is a print_r statement.
Array ( [0] => Monday [1] => Tuesday [2] => Wednesday [3] => Thursday [4] => Friday [5] => Saturday [6] => Sunday )