Cast float to string PHP

> Convert float to string
> Cast double to string

Description
Cast float to string


$val = (string)10.1;  // "10.1"
$val = 10.1 . "";  // "10.1"
$val = 10.1."";    // Error
$num = 10.1;
$val = "$num"; // "10.1"
SEE ALSO