rdx321 Posted April 2, 2008 Share Posted April 2, 2008 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 More sharing options...
rhodesa Posted April 2, 2008 Share Posted April 2, 2008 try $tin = 5 * ($A.$B); Link to comment https://forums.phpfreaks.com/topic/99092-multiplying/#findComment-507064 Share on other sites More sharing options...
rdx321 Posted April 2, 2008 Author Share Posted April 2, 2008 THANK YOU!! It worked. Link to comment https://forums.phpfreaks.com/topic/99092-multiplying/#findComment-507068 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.