Nov 23, 2006

Basic #6, Operations and Assignments

Numeric Assignments:

+ add
- minus
* multiply
/ divide
** power
% remainder of

$a++ returns value of a, then increment it by 1
++$a increment value of a, then return it
$a-- returns value of a, then decrement it
--$a decrements value of a, then return it


String:

$a . $b concatenation
$a x $b a is repeated b times

No comments: