Open In App

PHP | XMLReader close() Function

The XMLReader::close() function is an inbuilt function in PHP which is used to close the input of XMLReader object which is currently parsing.

Syntax:



bool XMLReader::close( void )

Parameters: This function doesn’t accepts any parameters.

Return Value: This function returns TRUE on success or FALSE on failure.



Below examples illustrate the XMLReader::close() function in PHP:

Program 1:

Program 2:

Reference: https://www.php.net/manual/en/xmlreader.close.php


Article Tags :