Answers for "php integer to string"

PHP
14

integer to string php

return strval($integer);
Posted by: Guest on April-06-2020
14

cast string to int php

$num = "3.14"; 
$int = (int)$num;//string to int
$float = (float)$num;//string to float
Posted by: Guest on March-23-2020
0

Convert an Integer Into a String in PHP

phpCopy<?php  
$variable = 10;
$string1 = (string)$variable;
echo "The variable is converted to a string and its value is $string1.";  
?>
Posted by: Guest on April-23-2021

Browse Popular Code Answers by Language