Answers for "add two numbers as string in php"

PHP
2

add two numbers in php

<?php  
$x=15;  
$y=30;  
$z=$x+$y;  
echo "Sum: ",$z;  
?>
Posted by: Guest on May-03-2020
0

add two numbers as string in php

$num = "3.14";
$int = (int)$num;
$float = (float)$num;
Posted by: Guest on June-22-2020

Code answers related to "add two numbers as string in php"

Browse Popular Code Answers by Language