Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert an integer to a string in PHP

$int = 5;
$int_as_string = (string) $int;
echo $int . ' is a '. gettype($int) . "
";
echo $int_as_string . ' is a ' . gettype($int_as_string) . "
";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #integer #string #PHP
ADD COMMENT
Topic
Name
3+6 =