Jump to content

Multiplying


rdx321

Recommended Posts

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);

 

?>

Link to comment
https://forums.phpfreaks.com/topic/99092-multiplying/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.