Search Results
SplFileObject::__toString (PHP 5 >= 5.1.0, PHP 7, PHP 8) SplFileObject::__toString — Returns the current line as a string
SplFileObject::__toString — Retourne la ligne courante sous forme de chaîne de caractères
<?php include_once $_SERVER ['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array (); $TOC_DEPRECATED = array (); $PARENTS = array (); include_once dirname ...
Simple usage example of `SplFileObject::__toString ()`. The `SplFileObject::__toString ()` function is a method in PHP's `SplFileObject` class. It is used to convert the current line of the file being read by the `SplFileObject` into a string.
Jan 21, 2013 · I've got a class that extends SplFileObject and implements a __toString method, but I seem to get inconsistent behaviour, depending on how the method is called. Sometimes the parent method is calle...
Nov 3, 2022 · The SplFileObject class uses the alias __tostring (). Magic method __tostring () It is worth noting that prior to PHP 5.2.0 the __toString method was only called when combined directly with echo () or print ().
This method will return the current line as a string.
