Answers for "add string to integer + php"

PHP
0

add two numbers as string in php

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

Browse Popular Code Answers by Language