array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'xmlreader.open.php', 1 => 'XMLReader::open', ), 'up' => array ( 0 => 'class.xmlreader.php', 1 => 'XMLReader', ), 'prev' => array ( 0 => 'xmlreader.next.php', 1 => 'XMLReader::next', ), 'next' => array ( 0 => 'xmlreader.read.php', 1 => 'XMLReader::read', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/xmlreader/xmlreader/open.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
XMLReader::open — Establece el URI conteniendo el XML a analizar
$uri
, ?string $encoding
= null
, int $flags
= 0): bool|XMLReaderEstablece el URI que contiene el XML a ser analizado.
Devuelve true
en caso de éxito o false
en caso de error. Si es llamado de forma estática, devuelve un
XMLReader o false
en caso de error.
This method may be called statically, but prior to PHP 8.0.0, will issue an
E_DEPRECATED
error in this case.
Versión | Descripción |
---|---|
8.0.0 | XMLReader::open() is now declared as static method, but can still be called on an XMLReader instance. |