Page 1 of 1

Multiplying

Posted: Tue Apr 01, 2008 8:56 pm
by rdx321
Hey guys, I need some help multiplying some numbers.

What I want to do is multiple 5 x $A$B so if $A=50 and $B=1 php would multiply 5x501

This is the code that I am currently using but is not working.
<?php

$A = 1;
$B = 2;
$C = 4;
$D = 2;
$Day = 1;
$Month = 4;
$Year = 8;
$pin = '$B, $A';

$DayTotal = $Day + $Month + $Year;

$tin = 5 * $A,$B ;

print ($tin);

?>

Re: Multiplying

Posted: Tue Apr 01, 2008 9:54 pm
by Christopher

Code: Select all

$c = intval("$A$B");