data type examples

Print the variable $x using echo: 14.412
Print the var_dump() of $x: float(14.412)

Print the variable $x using echo: 7
Print the var_dump() of $x: int(7)

Print the variable $x using echo: this is a string
Print the var_dump() of $x: string(16) "this is a string"

Print the variable $x using echo: 1
Print the var_dump() of $x: bool(true)

Print the variable $x using echo: Array
Print the var_dump() of $x: array(5) { [0]=> string(5) "Volvo" [1]=> string(3) "BMW" [2]=> string(6) "Toyota" [3]=> string(4) "Ford" [4]=> string(4) "Saab" }

Print the variable $x using echo:
Print the var_dump() of $x: NULL