02.2a: Operator Precedence

PHP offers many mathematical operators. In this lesson, we look at how to create comments, some basic mathematical operators and operator precedence.


https://www.youtube.com/watch?v=gTxlEwtx7Ho





<?php

#  Comment line

// Comment line

/* Comment multi line
    +
    -
    *
    /
    ()
*/


$c = (1 + 2) * 3;

print "$c\n";

?>