   -    ,     , 
   :

$q - $w;  ,     $q   $w.

<?php
$q=5;
$w=2;
$e=$q-$w;
print $e;
exit;
?>

     (5-2)        integer  float, 
  .

    :

$q+$w; 
$q*$w; 
$q/$w; 

        php   :

$q++;      $q=$q+1    
$q--;      $q=$q-1    
++$q  ,     
--$q       

     ,       , 
      1     ,      
     ,     ,     .

    ,      ,  if($q>=$w):

$q==$w;  $q  $w
$q<$w;  $q   $w
$q!=$w;  $q   $w
$q<=$w;  $q    $w
$q>=$w;  $q    $w

   :

$q or $w;  $q  $w
$q and $w;  $q   $w
$q xor $w   $q   $w(   )

     .