$name assign to peter and then to join the string together i use a caterater, to echo the data i use two bouble qoutes then a caterater and a semi colon.
It looks relly wrong to me but does what it suppose to, Why does it work, Also see the secound example easer to understand but being shown in my course the example here.
<? $name = "peter"; echo "my name is ".$name; ?>
This example works fine and looks correct to me, But is it as i am being shown the above to learn.
$name = "peter"; echo "my name is ".$name." ";
Are the both examples valid or not.