Menu Riverview Church

GET_DEFINED_VARS

Returns an array of all defined variables

SYNTAX

get_defined_vars ( void ) : array

RETURN

A multidimensional array with all the variables.

EXAMPLES

1

Array
(
    [_GET] => Array
        (
        )

    [_POST] => Array
        (
        )

    [_COOKIE] => Array
        (
        )

    [_FILES] => Array
        (
        )

)

2

Array
(
    [_GET] => Array
        (
        )

    [_POST] => Array
        (
        )

    [_COOKIE] => Array
        (
        )

    [_FILES] => Array
        (
        )

    [variable1] => 0
    [variable2] => 12.34
    [variable3] => abc
    [variable4] => Array
        (
            [0] => 1
            [1] => 2
            [2] => 3
        )

)

PHP