integer: $intVar

"; $floatVar = 1542.2232235; echo "

float: $floatVar

"; //Can use double quotes or single quotes for //strings, but there is a big difference, since //double quotes allow "variable interpolation" //but single quotes do not. echo "This is a string!
"; echo 'This is also a string!
'; $helloString = "Hello world!"; echo "

$helloString and $intVar

"; echo '

$helloString and $intVar

'; //Can also use print instead of echo for output, //but remember that print takes only a single //parameter (with or without parentheses). //Note that . is the PHP string concatenation operator. $x = 3; print "The value of \$x is $x." . "
"; print('The value of \$x is $x.' . '
'); //Note the "hard return" in the middle of the string ... echo "

Hello World!

"; //How did the "hard return" show up in the browser? //Note use of square brackets to retrieve a character from a string $str = "abcdef"; print $str[4]; ?>