Tutorial PHP

PHP INÍCIO Introdução ao PHP Instalação do PHP Sintaxe PHP Comentários PHP Variáveis ​​PHP PHP Eco/Impressão Tipos de dados PHP Strings PHP Números PHP Matemática PHP Constantes PHP Operadores PHP PHP If...Else...Elseif Chave PHP Loops PHP Funções PHP Matrizes PHP PHP Superglobais PHP RegEx

Formulários PHP

Manipulação de formulários PHP Validação de formulário PHP Formulário PHP obrigatório URL/e-mail do formulário PHP Formulário PHP completo

PHP Avançado

Data e hora do PHP Incluir PHP Manipulação de arquivos PHP Arquivo PHP Abrir/Ler Arquivo PHP Criar/Gravar Upload de arquivo PHP Cookies PHP Sessões PHP Filtros PHP Filtros PHP Avançados Funções de retorno de chamada do PHP PHP JSON Exceções do PHP

PHP OOP

PHP O que é POO Classes/objetos PHP Construtor PHP Destruidor PHP Modificadores de acesso PHP Herança PHP Constantes PHP Classes abstratas PHP Interfaces PHP Características PHP Métodos estáticos PHP Propriedades estáticas do PHP Namespaces PHP Iteráveis ​​PHP

Banco de dados MySQL

Banco de dados MySQL MySQL Connect MySQL Criar banco de dados MySQL Criar Tabela Dados de inserção do MySQL MySQL Obter Último ID MySQL Inserir Múltiplo Preparado para MySQL Dados de seleção do MySQL MySQL Onde MySQL Ordenar por Dados de exclusão do MySQL Dados de atualização do MySQL Dados de limite do MySQL

PHP XML

Analisadores XML PHP Analisador PHP SimpleXML PHP SimpleXML - Obter PHP XML Expatriado PHP XML DOM

PHP - AJAX

Introdução AJAX PHP AJAX Banco de dados AJAX XML AJAX Pesquisa em tempo real AJAX Enquete AJAX

Exemplos PHP

Exemplos PHP Compilador PHP Teste PHP Exercícios PHP Certificado PHP

Referência PHP

Visão geral do PHP Matriz PHP Calendário PHP Data do PHP Diretório PHP Erro PHP Exceção PHP Sistema de arquivos PHP Filtro PHP PHP FTP PHP JSON Palavras-chave PHP PHP Libxml Correio PHP Matemática PHP PHP Diversos PHP MySQLi Rede PHP Controle de saída PHP PHP RegEx PHP SimpleXML Fluxo PHP String PHP Manipulação de variáveis ​​PHP Analisador XML PHP PHP Zip Fusos horários PHP

Funções libxml do PHP


PHP libxml Introdução

As funções e constantes libxml são usadas em conjunto com as funções SimpleXML, XSLT e DOM.


Instalação

Essas funções requerem o pacote libxml. Baixe em xmlsoft.org


Funções libxml do PHP

PHP : indica a versão mais antiga do PHP que suporta a função.

Function Description
libxml_clear_errors() Clears the libxml error buffer
libxml_disable_entity_loader() Enables the ability to load external entities
libxml_get_errors() Gets the errors from the the libxml error buffer
libxml_get_last_error() Gets the last error from the the libxml error buffer
libxml_set_external_entity_loader() Changes the default external entity loader
libxml_set_streams_context() Sets the streams context for the next libxml document load or write
libxml_use_internal_errors() Disables the standard libxml errors and enables user error handling

Constantes libxml predefinidas do PHP

Constant Description
LIBXML_BIGLINES Make line numbers greater than 65535 to be reported correctly
LIBXML_COMPACT Set small nodes allocation optimization. This may improve the application performance
LIBXML_DTDATTR Set default DTD attributes
LIBXML_DTDLOAD Load external subset
LIBXML_DTDVALID Validate with the DTD
LIBXML_HTML_NOIMPLIED Set HTML_PARSE_NOIMPLIED flag. This turns off automatic adding of implied html/body elements
LIBXML_HTML_NODEFDTD Set HTML_PARSE_NODEFDTD flag. This prevents a default doctype to be added, if no doctype is found
LIBXML_NOBLANKS Remove blank nodes
LIBXML_NOCDATA Set CDATA as text nodes
LIBXML_NOEMPTYTAG Change empty tags (e.g. <br/> to <br></br>), only available in the DOMDocument->save() and DOMDocument->saveXML() functions
LIBXML_NOENT Substitute entities
LIBXML_NOERROR Do not show error reports
LIBXML_NONET Stop network access while loading documents
LIBXML_NOWARNING Do not show warning reports
LIBXML_NOXMLDECL Drop the XML declaration when saving a document
LIBXML_NSCLEAN Remove excess namespace declarations
LIBXML_PARSEHUGE Set XML_PARSE_HUGE flag. This relaxes any hardcoded limit from the parser, such as maximum depth of a document or the size of text nodes
LIBXML_PEDANTIC Set XML_PARSE_PEDANTIC flag. This enables pedantic error reporting
LIBXML_XINCLUDE Use XInclude substitution
LIBXML_ERR_ERROR Get recoverable errors
LIBXML_ERR_FATAL Get fatal errors
LIBXML_ERR_NONE Get no errors
LIBXML_ERR_WARNING Get simple warnings
LIBXML_VERSION Get libxml version (e.g. 20605 or 20617)
LIBXML_DOTTED_VERSION Get dotted libxml version (e.g. 2.6.5 or 2.6.17)
LIBXML_SCHEMA_CREATE Create default or fixed value nodes during XSD schema validation