Menu Samaritan's Purse

VAR_DUMP

Dumps information about a variable

SYNTAX

var_dump ( mixed $expression [, mixed $... ] ) : void

PARAMETERS

expression

The variable you want to dump.

...

Another variable ...

RETURN

No value is returned.

EXAMPLES

EXPRESSION | BOOL

bool(false)

EXPRESSION | INT

int(0)

EXPRESSION | FLOAT

float(0)

EXPRESSION | STRING

string(1) "0"

EXPRESSION | ARRAY

array(3) {
[0]=>
int(0)
[1]=>
int(1)
[2]=>
array(2) {
    [0]=>
    int(0)
    [1]=>
    int(1)
}
}

EXPRESSION | OBJECT | STANDARD CLASS

object(stdClass)#1 (1) {
["var"]=>
int(0)
}

EXPRESSION | OBJECT | CUSTOM CLASS

object(myclass)#1 (1) {
["var"]=>
int(0)
}

...

bool(false)
int(0)
float(0)
string(1) "0"
array(3) {
[0]=>
int(0)
[1]=>
int(1)
[2]=>
array(2) {
    [0]=>
    int(0)
    [1]=>
    int(1)
}
}
object(stdClass)#1 (1) {
["var"]=>
int(0)
}
object(myclass)#2 (1) {
["var"]=>
int(0)
}

INTERNAL

print_r

var_export

EXTERNAL

PHP