ToStringFormat
Trait ToStringFormat.
Handle global format customization for string cast of the object.
Table of Contents
Methods
- resetToStringFormat() : void
- Reset the format used to the default when type juggling a Carbon instance to a string
- setToStringFormat() : void
Methods
resetToStringFormat()
Reset the format used to the default when type juggling a Carbon instance to a string
public
static resetToStringFormat() : void
setToStringFormat()
public
static setToStringFormat(string|Closure|null $format) : void
Parameters
- $format : string|Closure|null