ValueToStringTrait
Provides functionality to express a value as string
- Full name:
\Ramsey\Collection\Tool\ValueToStringTrait
Methods
toolValueToString
Returns a string representation of the value.
- null value:
'NULL'
- boolean:
'TRUE'
,'FALSE'
- array:
'Array'
- scalar: converted-value
- resource:
'(type resource #number)'
- object with
__toString()
: result of__toString()
- object DateTime: ISO 8601 date
- object:
'(className Object)'
- anonymous function: same as object
Parameters:
Parameter | Type | Description |
---|---|---|
$value |
mixed | the value to return as a string. |
Automatically generated on 2025-03-18