The var_dump function allows you to dump the contents of a variable (type and value) for debugging.
Example:
$array = [3.7, "string", 10, ["hello" => "world"], false, new DateTime()];
var_dump($array);
Output:
array(6) {
[0]=>
float(3.7)
[1]=>
...