-2

Is there any explanation why this " %_ " and "Square Bracket" is used ? i cant proceed without knowing this, Thanks in advance .

helal ch
  • 1
  • 2

2 Answers2

0

$_ variables

Built-in variables that begin with $_ are so-called superglobals:

Superglobals are built-in variables that are always available in all scopes

[] syntax

$_POST is an associative array. As per the language design, accessing elements of such an array is performed via the square bracket notation:

echo $_POST["key"];
domsson
  • 3,615
  • 2
  • 18
  • 34
0

My explanation is: $_ and Square Bracket are part of the syntax. Every language has syntax = rule of writing. Authors of a programming language are authors of the syntax.

b2ok
  • 552
  • 6
  • 13