Cast int to string PHP

> Cast integer to string
> Convert integer to string

Description
Cast integer to string


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