PHP: $_GLOBALS

Array
(
    [_GET] => Array
        (
        )

    [_POST] => Array
        (
        )

    [_COOKIE] => Array
        (
            [care_did] => 312bcbed-6d19-46ac-93ea-99844af57e69
        )

    [_FILES] => Array
        (
        )

    [level] => Array
        (
            [1] => Array
                (
                    [name] => Level 1
                    [description] => This is level one.
                    [Boss Name] => Rick Yames
                )

            [2] => Array
                (
                    [name] => Level 2
                    [description] => This is level two.
                    [Boss Name] => Chester Pilaf
                )

            [3] => Array
                (
                    [name] => Level 3
                    [description] => This is level three.
                    [Boss Name] => Linda Argentina
                )

        )

)

The code used for index.php is below:


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../styles.css">
    <title>PHP: $_GLOBALS</title>
</head>
<body>
    <h1 class="lesson-h1">PHP: $_GLOBALS</h1>

    <?php
        //added our Level array to $GLOBALS
        $GLOBALS['level'] = array(
            1 => array(
                'name' => 'Level 1',
                'description' => 'This is level one.',
                'Boss Name' => 'Rick Yames'
            ),
            2 => array(
                'name' => 'Level 2',
                'description' => 'This is level two.',
                'Boss Name' => 'Chester Pilaf'

            ),
            3 => array(
                'name' => 'Level 3',
                'description' => 'This is level three.',
                'Boss Name' => 'Linda Argentina'

            ) 
        );
        echo "<pre>";
        print_r($GLOBALS);
        echo "</pre>";

        include('../show_code.php');
        show_code('index.php');
    ?>
</body>
</html>