Integer to String php
return strval($integer);
Awful Anaconda
return strval($integer);
$number = 11;
// This
echo strval($number);
// Or This
echo (String) $number;
// Output
// "11"
// "11"
$num = "3.14";
$int = (int)$num;//string to int
$float = (float)$num;//string to float
phpCopy<?php
$variable = 10;
$string1 = (string)$variable;
echo "The variable is converted to a string and its value is $string1.";
?>
$myintvariable = intval($myvariable);
strval($variableName);