[PHP] gettype()

gettype() (funzione PHP) restituisce il tipo di dato di una variabile, ovvero: array, boolean, double, integer, null, object, resource, string, unknown type.

tips&tricks

Sintassi

gettype($var);
parametro descrizione
$var La variabile da processare

Esempi

$var = 1;
echo gettype($var);

/* RISULTATO
integer
*/

Fonti esterne

funzioni php, php

Related Articles

0 Comment