Answers for "int in string php"

PHP
0

Convert an Integer Into a String in PHP

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

Convert an Integer Into a String in PHP

phpCopy$integer = 5;
echo "The string is $integer";
Posted by: Guest on April-23-2021

Browse Popular Code Answers by Language