ArrayObject::append

(PHP 5 >= 5.0.0, PHP 7) Appends the value public void ArrayObject::append ( mixed $value ) Appends a new value as the last element. Note: This method cannot be called when the ArrayObject was constructed from an object. Use ArrayObject::offsetSet() instead. Parameters: value The value being appended. Returns: No value is returned.

SplTempFileObject::__construct

(PHP 5 >= 5.1.2, PHP 7) Construct a new temporary file object public SplTempFileObject::__construct ([ int $max_memory ] ) Construct a new temporary file object. Parameters: max_memory The maximum amount of memory (in bytes, default is 2 MB) for the temporary file to use. If the temporary file exceeds this size, it will be moved to a file in the system's temp directory

SplFileObject::valid

(PHP 5 >= 5.1.0, PHP 7) Not at EOF public bool SplFileObject::valid ( void ) Check whether EOF has been reached. Returns: Returns TRUE if not reached EOF, FALSE otherwise. Examples: SplFileObject::valid() example <?php // Loop over a file, line by line $file = new SplFileObject("file.txt"); while ($file->valid())

SplFileObject::setMaxLineLen

(PHP 5 >= 5.1.0, PHP 7) Set maximum line length public void SplFileObject::setMaxLineLen ( int $max_len ) Sets the maximum length of a line to be read. Parameters: max_len The maximum length of a line. Returns: No value is returned. Exception: Throws DomainException when max_len is less than zero.

SplFileObject::seek

(PHP 5 >= 5.1.0, PHP 7) Seek to specified line public void SplFileObject::seek ( int $line_pos ) Seek to specified line in the file. Parameters: line_pos The zero-based line number to seek to. Returns: No value is returned. Exception: Throws a LogicException if the line_pos is negative.

SplFileObject::setFlags

(PHP 5 >= 5.1.0, PHP 7) Sets flags for the SplFileObject public void SplFileObject::setFlags ( int $flags ) Sets the flags to be used by the SplFileObject. Parameters: flags Bit mask of the flags to set. See SplFileObject constants for the available flags. Returns: No value is returned. Exampl

SplFileObject::rewind

(PHP 5 >= 5.1.0, PHP 7) Rewind the file to the first line public void SplFileObject::rewind ( void ) Rewinds the file back to the first line. Returns: No value is returned. Exception: Throws a RuntimeException if cannot be rewound. Examples: SplFileObject::rewind() example <?php $file = new SplFil

SplFileObject::setCsvControl

(PHP 5 >= 5.2.0, PHP 7) Set the delimiter and enclosure character for CSV public void SplFileObject::setCsvControl ([ string $delimiter = "," [, string $enclosure = "\"" [, string $escape = "\\" ]]] ) Sets the delimiter and enclosure character for parsing CSV fields. Parameters: delimiter The field delimiter (one character only). enclosure

SplFileObject::hasChildren

(PHP 5 >= 5.1.2, PHP 7) SplFileObject does not have children public bool SplFileObject::hasChildren ( void ) An SplFileObject does not have children so this method always return FALSE. Returns: Returns FALSE See also: RecursiveIterator::hasChildren() -

SplFileObject::getMaxLineLen

(PHP 5 >= 5.1.0, PHP 7) Get maximum line length public int SplFileObject::getMaxLineLen ( void ) Gets the maximum line length as set by SplFileObject::setMaxLineLen(). Returns: Returns the maximum line length if one has been set with SplFileObject::setMaxLineLen(), default is 0. Examples: SplFileObject::getMaxLineLen() example