var_dump() function in PHP

The var_dump() function is used to display structured information about one or more variables. The structured information means type and value of the given variable. It outputs not just the value of the variable but also its data type and, in the case of arrays or objects, all of their structure.

Syntax: 

var_dump(mixed $value, mixed ...$values): void

 Example:

<?php
$number = 123;
$string = "Hello, World!";
$array = [1, 2, 3, "PHP", true];
var_dump($number);
var_dump($string);
var_dump($array);
?>

Output:

int(123)
string(13) "Hello, World!"
array(5) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
[3]=>
string(3) "PHP"
[4]=>
bool(true)
}