Assignment 1

Barry Molina

Quotes

In PHP, both double quotes and single quotes can be used to store strings.

Single quotes will interpret their contents literally:

$my_var = 'fun';
echo 'PHP is $my_var';

Output: PHP is $my_var

Double quotes will resolve variables to the values they contain:

$my_var = 'fun';
echo "PHP is $my_var";

Output: PHP is fun

quotes.php source code screenshot
quotes.php source code screenshot 2