略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SplFileObject::__toString

2024-11-13

SplFileObject::__toString

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

SplFileObject::__toStringAlias of SplFileObject::fgets()

说明

此方法是该方法的别名: SplFileObject::fgets().

更新日志

版本 说明
7.2.19, 7.3.6 Changed from an alias of SplFileObject::current() to an alias of SplFileObject::fgets().
add a noteadd a note

User Contributed Notes 1 note

up
1
Anonymous
3 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.

官方地址:https://www.php.net/manual/en/splfileobject.tostring.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3