SplFileObject::__toString

Returns the current line as a string

&reftitle.description; public `string` `SplFileObject::__toString`

This method will return the current line as a string.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns the current line as a string.

&reftitle.changelog;

&Version; | &Description;
8.1.14, 8.2.1 | Changed from an alias of `SplFileObject::fgets` to an implementation of `SplFileObject::current` which returns a CSV string when the `SplFileObject::READ_CSV` flag is set.
7.2.19, 7.3.6 | Changed from an alias of `SplFileObject::current` to an alias of `SplFileObject::fgets`.