toString.php
Table of Contents
Functions
- toString() : string
- Converts a value to a string representation.
Functions
toString()
Converts a value to a string representation.
toString(mixed $value) : string
- Returns an empty string for
null
values. - Preserves the sign of
-0.0
as the string "-0". - Converts arrays recursively by flattening and joining with commas.
- Accepts objects implementing
Stringable
.
Parameters
- $value : mixed
-
The value to convert.
Tags
Return values
string —The string representation of the value.