Skip to content
Advertisements

PHP var_dumb()

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) }

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: