← All built-ins / strval()
strval()
strval(mixed $number): string
Parameters
| Name | Type | Description |
|---|---|---|
| $v | mixed | value to convert |
Return value
The string representation.
Example
echo strval(42) . "!", " "; echo strval(1.5), " ";
42! 1.5
| Name | Type | Description |
|---|---|---|
| $v | mixed | value to convert |
The string representation.
echo strval(42) . "!", " "; echo strval(1.5), " ";
42! 1.5