Answers for "how to convert a variable to a string php"

PHP
14

integer to string php

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

php to string

$number = 10;
// To convert this number to a string:
$numberString = (string)$number;
Posted by: Guest on October-30-2020

Code answers related to "how to convert a variable to a string php"

Browse Popular Code Answers by Language