logo-img
  • Home
  • Tutorials
  • Refer and Earn
  • Courses
    • Courses

      AWS
      • AWS Solutions Archit... 60 Section
      Office 365
      • Office 365 System Ad... 27 Section
      Azure
      • Azure (AZ-900) Fund... 10 Section
      • Azure Administrator... 47 Section
      • Azure DevOps (AZ-400... 11 Section
      • az104 exam prep only 18 Section
      Windows Administration
      • Windows Server Admin... 14 Section
      CCNA
      • CCNA (200-301) : Rou... 44 Section
      ITIL
      • Complete ITIL 4 Foun... 8 Section
      Cyber Security
      • Complete Ethical Hac... 10 Section
      IT OJT Internship
      • 15 Days Job Internsh... 8 Section
      • 15 Days Job Internsh... 7 Section
      DevOps
      • Complete Docker Mast... 4 Section
      • Complete Git & GitHu... 10 Section
      • PowerShell Mastery:... 15 Section
      • Jenkins Mastery: Com... 3 Section
      Digital Marketing

      Role-Based

      Network Security Engineer3 courses
  • Internships
    • Internships

      45 Days Job Internship Program (Live)
      Master in Graphic Design & Video Editing
      Master in AI Digital Marketing
      UI/UX Design and Development
      AI Powered Java Full Stack Developer Program
  • Corporate Training
    • Corporate Training

      AWS + Devops
      Azure + DevOps
      CCNA 200-301
      DevOps
      FULL STACK WEB DEVELOPMENT
      UX/UI Designer
      HR Recruitment & Operations
  • Placements
  • Teach with Evision
Login/Register
Student Login Student Login Faculty Login
  • HTML
  • CSS
  • JavaScript
  • SQL
  • Python
  • News
  • PHP
  • PHP Overview
  • PHP MySQL
  • Static Methods
  • Static Properties
  • Superglobals
  • $GLOBALS
  • $_SERVER
  • $_REQUEST
  • $_POST
  • $_GET
  • $_COOKIE
  • $_SESSION
  • Traits
  • Connecting to MySQL
  • Creating a MySQL Database
  • Creating Table in MySQL
  • Inserting Data in MySQL
  • Selecting Data in MySQL
  • Updating Data in MySQL
  • Deleting Data in MySQL
  • Include & Require
  • File Handling
  • Arrays
  • PHP Comments
  • Variables in PHP
  • Variable Scope
  • PHP DataTypes
  • PHP Operators
  • PHP Conditional Statements
  • PHP Iterative Statements
  • PHP Function
  • Function Arguments
  • OOPS
  • Classes
  • Objects
  • Inheritance
  • Constructors and Destructors
  • Access Modifiers
  • Interface
  • Abstract Classes
  • Class Constants

$GLOBALS

$GLOBALS is a superglobal variable, which is also an array that stores all the global scope variables and is used to access global variables from anywhere in the PHP program.

Example:

<?php
$x = 10;
$y = 11;

function add() {
 $GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y'];
}

add();
echo $z;
?>

Output:

21

Previous Next

Site Links

  • Home
  • About
  • Corporate Training
  • Internships
  • Success Corner
  • Contact Us

Useful Links

  • Terms of Use
  • Privacy Policy
  • Refund Policy

Stay up to date

Contact Details

Gaur city Mall, Greater Noida, West Uttar Pradesh 201009.

+91 9811 722 064
info@evisiontechnoserve.com
  • Copyright © 2025 Evision. All Rights Reserved.
Referral Promo
Share Knowledge, Spark Success

Refer a friend to our services and get earnings on your next service. Hurry, this offer won’t be around forever – it’s just a fleeting referral-tunity.

Login

OTP sent successfully!

Resend OTP

Referral Promo
Login by Student

OTP sent successfully!

Resend OTP
Login by Faculty