PHP var_dump


This function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.

<?php

$a = array(1, 2, array(“a”, “b”, “c”));
var_dump($a);
?>

Result : –

array(3) {

[0]=>

int(1)

[1]=>

int(2)

[2]=>

array(3) {

[0]=>

string(1) “a”

[1]=>

string(1) “b”

[2]=>

string(1) “c”

}

}

——————————————————————————-

<?php

$b = 3.1;

$c = true;

var_dump($b, $c);

?>

Result: –

float(3.1)

bool(true)

Tagged: ,

2 thoughts on “PHP var_dump

  1. Rashi March 9, 2010 at 5:45 pm Reply

    Yahan par bhi coding kya baat kya baat!!!

    • Vishal Jain March 10, 2010 at 4:41 pm Reply

      Your welcome to my blog.
      kya kare
      coding hi coding….

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: