Search Results
Return Values ¶ Retrieves the current line of the file. If the SplFileObject::READ_CSV flag is set, this method returns an array containing the current line parsed as CSV data. If the end of the file is reached, false is returned.
Apr 27, 2026 · SplFileObject::setCsvControl — Set the delimiter, enclosure and escape character for CSV SplFileObject::setFlags — Sets flags for the SplFileObject SplFileObject::setMaxLineLen — Set maximum line length SplFileObject::__toString — Returns the current line as a string SplFileObject::valid — Not at EOF
Return Values Retrieves the current line of the file. If the SplFileObject::READ_CSV flag is set, this method returns an array containing the current line parsed as CSV data. If the end of the file is reached, false is returned.
Return Values Retrieves the current line of the file. If the SplFileObject::READ_CSV flag is set, this method returns an array containing the current line parsed as CSV data.
SplFileObject::seek — Seek to specified line SplFileObject::setCsvControl — Set the delimiter and enclosure character for CSV SplFileObject::setFlags — Sets flags for the SplFileObject SplFileObject::setMaxLineLen — Set maximum line length SplFileObject::__toString — Alias of SplFileObject::current SplFileObject::valid — Not at EOF ...
PHP Manual Return Values Retrieves the current line of the file. If the SplFileObject::READ_CSV flag is set, this method returns an array containing the current line parsed as CSV data.
Jul 11, 2025 · The SplFileObject::current () function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get current line of file. Syntax: string SplFileObject::current( void ) Parameters: This function does not accept any parameter. Return values: Returns current line of the file. Below Programs illustrate the SplFileObject::current () function in PHP. Note: Program 1 has used gfg ...
