afficher type et contenu d'une variable php

PHP
gettype ( mixed $var ) : string

gettype ("SALUT") => string
gettype (2) => integer    
  ...etc ...
  
"bool"
"integer"
"double"
"array"
"object"
"resource"
"NULL"
"unknown type"
Source

Also in PHP: