trait ValueToStringTrait (View source)

Provides functionality to express a value as string

Methods

string
toolValueToString(mixed $value)

Return a string with the information 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

Details

protected string toolValueToString(mixed $value)

Return a string with the information 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

mixed $value

Return Value

string