Mostrado mediante echo


La variable $nombre tiene como valor: Álvaro y es de tipo string
La variable $edad tiene como valor: 20 y es de tipo integer
La variable $dinero tiene como valor: 35.34y es de tipo double
La variable $flag tiene como valor: 1 y es de tipo boolean


Mostrado mediante print


La variable de tipo string tiene como valor: Álvaro
La variable de tipo integer tiene como valor: 20
La variable de tipo double tiene como valor: 35.34
La variable de tipo boolean tiene como valor: 1


Mostrado mediante printf


La variable de tipo string tiene como valor: Álvaro
La variable de tipo integer tiene como valor: 20
La variable de tipo double tiene como valor: 35.3
La variable de tipo boolean tiene como valor: 1


Mostrado mediante print_r


La variable de tipo string tiene como valor: Álvaro
La variable de tipo integer tiene como valor: 20
La variable de tipo double tiene como valor: 35.34
La variable de tipo boolean tiene como valor: 1


string(33) "

Mostrado mediante var_dump

"
string(52) "La variable de tipo string tiene como valor: Álvaro"
string(48) "La variable de tipo integer tiene como valor: 20"
string(50) "La variable de tipo double tiene como valor: 35.34"
string(47) "La variable de tipo boolean tiene como valor: 1"