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!$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." . "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]; ?>