Source Code:
(back to article)
<?php $var1 = 10; $var2 = 3.14; $var3 = true; $string1 = strval($var1); $string2 = strval($var2); $string3 = strval($var3); echo $string1 . "\n"; // output: "10" echo $string2 . "\n"; // output: "3.14" echo $string3 . "\n"; // output: "1" ?>
Result:
Report an issue