Disclaimer – there are likely to be mistakes in this, so please point them out! Here are my notes from my PHP for beginners course, which was excellent, and was run by Highlander. I know it’s better to use the PHP manual but it helps me to write these out so feel free to ignore these!
<pre>
this will print on two
lines, even without a br tag
</pre>
$x = $x + 1;
//equals
x ++;
$n = 3;
echo $n * $n- -;
// (ignore spaces between minus symbols) equals
echo $n * ($n- -);
// two minus symbols after $n means run the line then apply (-1) to $n
$n = 3;
echo $n * – -$n;
// equals
– -$n;
echo $n*$n;
// two minus symbols before $n means apply (-1) to $n THEN run whole line.