PHP 7.4.0RC4 Released!

SplFileObject::__toString

(PHP 5 >= 5.1.0, PHP 7)

SplFileObject::__toStringAlias of SplFileObject::fgets()

Açıklama

Bu yöntem şu yöntemin takma adıdır: SplFileObject::fgets().

Sürüm Bilgisi

Sürüm: Açıklama
7.2.19, 7.3.6 Changed from an alias of SplFileObject::current() to an alias of SplFileObject::fgets().

add a note add a note

User Contributed Notes 1 note

up
0
Anonymous
1 year 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