Answers for "adding a string and an integer into a variable 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

Code answers related to "adding a string and an integer into a variable php"

Browse Popular Code Answers by Language