Answers for "convert to sting an integer on php"

PHP
14

integer to string php

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

string to int php

$str = "10";
$num = (int)$str;
Posted by: Guest on December-17-2020

Browse Popular Code Answers by Language