Définition des priorités des calculs avec la parenthese

Author:


Download

<?php
// Aucune priorité n''est définit
$a=2 * 3 + 4 + 1;// 11;
echo $a."<br/>";

/* La priorité est définit pour
   les opérations entre parenthèse * /
$a= 2 * (3 + 4 + 1);// 16
echo $a."<br/>";
?>

Leave a Reply

Your email address will not be published. Required fields are marked *


7 − = three