The strval() function is used to get the string value of a variable.
PHP version requirements: PHP 4, PHP 5, PHP 7
string strval (mixed $var)
Parameter description:
$var: Can be any scalar type, but not an array or object.
Returns a string.
The output is:
int(123)string(3) "123"