Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

7. Super Global Variables

Lesson 8 of 36 in the free Web Based Programming notes on Siksha Sarovar, written by Rohit Jangra.

PHP Super Global Variables

Super Globals are predefined variables in PHP that are always accessible, regardless of scope — you can access them from any function, class, or file without having to do anything special.

Super GlobalPurposeExample
$GLOBALSAccess global variables from anywhere.$GLOBALS['x']
$_SERVERHolds server/header information.$_SERVER['PHP_SELF']
$_GETCollects data sent in URL parameters.$_GET['id']
$_POSTCollects data from an HTML form.$_POST['user']
$_FILESContains uploaded file information.$_FILES['image']
$_SESSIONStores user session data.$_SESSION['login']
$_COOKIERetrieves browser cookie values.$_COOKIE['theme']

5. GET vs POST (Examination Focus)

BCA exams frequently ask for the difference between GET and POST methods.

FeatureGET MethodPOST Method
VisibilityParameters appended to URL.Parameters hidden in HTTP body.
SecurityLow (not for passwords).Higher (suitable for sensitive data).
Data Limit~2048 characters.No specific limit.
CachingCan be cached and bookmarked.Cannot be cached or bookmarked.
Use CaseSearch queries, filtering.Logins, file uploads, DB updates.