Dump any variable to a debug string
Available since version 3.0.208.
Usage
// basic usage
$string = Debug::toStr($value);
// usage with all arguments
$string = Debug::toStr($value, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
value | int, float, object, string, array | |
options (optional) | array |
|
Return value
string
API reference based on ProcessWire core version 3.0.236