convert to string function php code example
Example: php to string
$number = 10;
// To convert this number to a string:
$numberString = (string)$number;
$number = 10;
// To convert this number to a string:
$numberString = (string)$number;