Funções para Manipulação de variáveis

Índice

  • boolval — Obtém o valor booleano de uma variável
  • debug_zval_dump — Exibe a representação de um interno zend value
  • doubleval — Sinônimo de floatval
  • empty — Determina se a variável é vazia
  • floatval — Obtém o valor em ponto flutuante da variável
  • get_debug_type — Gets the type name of a variable in a way that is suitable for debugging
  • get_defined_vars — Retorna um array com todas variáveis definidas
  • get_resource_id — Returns an integer identifier for the given resource
  • get_resource_type — Retorna o tipo de resource
  • gettype — Obtém o tipo da variável
  • intval — Retorna o valor inteiro da variável
  • is_array — Verifica se a variável é um array
  • is_bool — Verifica se a variável é um boleano
  • is_callable — Verifica se o conteúdo da variável pode ser chamado como função
  • is_countable — Verify that the contents of a variable is a countable value
  • is_double — Sinônimo de is_float
  • is_float — Informa se a variável é do tipo float
  • is_int — Informa se a variável é do tipo inteiro
  • is_integer — Sinônimo de is_int
  • is_iterable — Verify that the contents of a variable is an iterable value
  • is_long — Sinônimo de is_int
  • is_null — Informa se a variável é null
  • is_numeric — Informa se a variável é um número ou uma string numérica
  • is_object — Informa se a variável é um objeto
  • is_real — Sinônimo de is_float
  • is_resource — Informa se a variável é um resource
  • is_scalar — Informa se é uma váriavel escalar
  • is_string — Informa se a variável é do tipo string
  • isset — Informa se a variável foi iniciada
  • print_r — Imprime informação sobre uma variável de forma legível
  • serialize — Generates a storable representation of a value
  • settype — Atribui um tipo para a variável
  • strval — Retorna o valor string de uma variável
  • unserialize — Creates a PHP value from a stored representation
  • unset — Destrói a variável especificada
  • var_dump — Mostra informações sobre a variável
  • var_export — Mostra ou retorna uma representação estruturada de uma variável
add a note add a note

User Contributed Notes 1 note

up
0
aldemarcalazans@gmail
4 years ago
I thought the PHP developers should include in this section, the operator "identity" ( see http://php.net/manual/en/language.operators.arithmetic.php).

From an arithmetic point of view, this operator is useless but, as a converter from string to number, it is great. It does not force the numerical string to have an integer or float type, instead, it automatically determines the adequate type, depending on the numerical quantity represented by the string.
To Top