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.
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
SplFileObject::__toString — Псевдоним SplFileObject::fgets()
Метод является псевдонимом: SplFileObject::fgets().
Версия | Описание |
---|---|
7.2.19, 7.3.6 | Изменён псевдоним с SplFileObject::current() на SplFileObject::fgets(). |