Functions:math

Computes a mathematical equation

math(string $equation, [ string $format = "", [ string $assign = "", [ array $rest = array ]]])


 * equation : the equation to compute, it can include normal variables with $foo or special math variables without the dollar sign
 * format : output format, see sprintf for details
 * assign : if set, the output is assigned into the given variable name instead of being output
 * rest : all math specific variables that you use must be defined, see the example

Example: Output : 4