ValueToStringTrait
trait ValueToStringTrait (View source)
Provides functionality to express a value as string
Methods
string
toolValueToString(mixed $value)
Returns a string representation of the value.
Details
at line 38
protected string
toolValueToString(mixed $value)
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