PHP 8.4.2 Released!

SplFileObject::__toString

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

SplFileObject::__toStringAlias de SplFileObject::fgets()

Descripción

Este método es un alias de: SplFileObject::fgets().

Historial de cambios

Versión Descripción
7.2.19, 7.3.6 Cambiado de un alias de SplFileObject::current() a un alias de SplFileObject::fgets().

add a note

User Contributed Notes 1 note

up
0
Anonymous
6 years ago
Please note that the __toString() method is just an alias, as pointed out above, and that THAT method may return an array instead of a string. So in effect you might call a __toString() and expect a string, but instead receive an array.
To Top