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

PHP Misc. Funções


Introdução ao PHP Diversos

Os diversos as funções só foram colocadas aqui porque nenhuma das outras categorias parecia se encaixar.


Instalação

Os diversos funções fazem parte do núcleo do PHP. Nenhuma instalação é necessária para usar essas funções.


Configuração de tempo de execução

O comportamento do misc. funções é afetada pelas configurações no arquivo php.ini.

Diversos opções de configuração:

Name Description Default Changeable
ignore_user_abort FALSE indicates that scripts will be terminated as soon as they try to output something after a client has aborted their connection "0" PHP_INI_ALL
highlight.string Color for highlighting a string in PHP syntax "#DD0000" PHP_INI_ALL
highlight.comment Color for highlighting PHP comments "#FF8000" PHP_INI_ALL
highlight.keyword Color for syntax highlighting PHP keywords (e.g. parenthesis and semicolon) "#007700" PHP_INI_ALL
highlight.default Default color for PHP syntax "#0000BB" PHP_INI_ALL
highlight.html Color for HTML code "#000000" PHP_INI_ALL
browscap Name and location of browser-capabilities file (e.g. browscap.ini) NULL PHP_INI_SYSTEM


Funções Diversas do PHP

Function Description
connection_aborted() Checks whether the client has disconnected
connection_status() Returns the current connection status
connection_timeout() Deprecated from PHP 4.0.5. Checks whether the script has timed out
constant() Returns the value of a constant
define() Defines a constant
defined() Checks whether a constant exists
die() Alias of exit()
eval() Evaluates a string as PHP code
exit() Prints a message and exits the current script
get_browser() Returns the capabilities of the user's browser
__halt_compiler() Halts the compiler execution
highlight_file() Outputs a file with the PHP syntax highlighted
highlight_string() Outputs a string with the PHP syntax highlighted
hrtime() Returns the system's high resolution time
ignore_user_abort() Sets whether a remote client can abort the running of a script
pack() Packs data into a binary string
php_strip_whitespace() Returns the source code of a file with PHP comments and whitespace removed
show_source() Alias of highlight_file()
sleep() Delays code execution for a number of seconds
sys_getloadavg() Returns the system load average
time_nanosleep() Delays code execution for a number of seconds and nanoseconds
time_sleep_until() Makes a script sleep until the specified time
uniqid() Generates a unique ID
unpack() Unpacks data from a binary string
usleep() Delays code execution for a number of microseconds

PHP Predefinido Misc. Constantes

Constant Description
CONNECTION_ABORTED Connection is aborted by user or network error
CONNECTION_NORMAL Connection is running normally
CONNECTION_TIMEOUT Connection timed out
__COMPILER_HALT_OFFSET__