Search Results
SplFileObject::fgetc (PHP 5 >= 5.1.0, PHP 7, PHP 8) SplFileObject::fgetc — Gets character from file
Jul 11, 2025 · The SplFileObject::fgetc () function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get character from file. Syntax: string SplFileObject::fgetc( void ) Parameters: This function does not accept any parameter. Return values: Returns single character read from the file or FALSE on EOF. Below Programs illustrate the SplFileObject::fgetc () function in PHP. Note ...
{"payload":{"allShortcutsEnabled":false,"fileTree":{"reference/spl/splfileobject":{"items":[{"name":"construct.xml","path":"reference/spl/splfileobject/construct.xml ...
3 days ago · Table of Contents SplFileObject::__construct — Construct a new file object SplFileObject::current — Retrieve current line of file SplFileObject::eof — Reached end of file SplFileObject::fflush — Flushes the output to the file SplFileObject::fgetc — Gets character from file SplFileObject::fgetcsv — Gets line from file and parse as CSV fields SplFileObject::fgets — Gets line from ...
(PHP 5 >= 5.1.0, PHP 7) Return Values Returns a string containing a single character read from the file or false on EOF.
This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE. Please read the section on Booleans for more information. Use the === operator for testing the return value of this function.
Table of Contents SplFileObject::__construct — Construct a new file object. SplFileObject::current — Retrieve current line of file SplFileObject::eof — Reached end of file SplFileObject::fflush — Flushes the output to the file SplFileObject::fgetc — Gets character from file SplFileObject::fgetcsv — Gets line from file and parse as CSV fields SplFileObject::fgets — Gets line from ...
