|
home—lects—hws
D2L—breeze (snow day)
<?php echo "hello there everybody!"; echo ' -- Dr. Nick '; ?> |
$str = "How are you?"; $first_name = "John"; $str = "How are you " . $first_name . "?"; $str = "How are you $first_name?"; // alternately $date = "1/01/2010"; // this is a string! $str2 = "I said, \"how are you?\""; // To use a variable followed by literal-chars that aren't part of the variable name: $str3 = "Curly braces are as cute as you are, ${first_name}y-poo!"; |
1 A similar term is “transclusion”, including one document inside another, like ↩
home—lects—hws
D2L—breeze (snow day)
©2015, Ian Barland, Radford University Last modified 2016.Feb.02 (Tue) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |