var_dump (): Used to access all structure and information of any variable.
Example 1
$Value = "true codes .org";
var_dump($Value);
string(15) “true codes .org”
Example 2
$Value = 2019;
var_dump($Value);
int(2019)
Example 3
$Value = 18.81;
var_dump($Value);
float(18.81)
Example 4
$Value = true;
var_dump($Value);
bool(true)
Example 5
$Value = null;
var_dump($Value);
NULL
Example 6
$Value = array(1,2,3,'one','two',21.2);
var_dump($Value);
array(6) {
[0]=> int(1)
[1]=> int(2)
[2]=> int(3)
[3]=> string(3) “one” [4]=> string(3) “two” [5]=> float(21.2) }
Leave a comment