Php $ special variable (output variable string corresponding variable value)
- $ Var1 = 'nameofvariable ';
- $ NameOfVariable = 'This is the value I want! ';
- Echo $ var1;
- ?>
Output result: This is the value I want!Articles you may be interested in: PHP variable security example description: php variable $ a {0} role-php variable learning example-php system variables and environment variables-php variable reference, function address and object reference instance parsing in-depth explanation of php functions and variable scopes usage of php variable scopes in-depth analysis of PHP variable scopes php Super global variables overview of php variables and constants-php Getting Started Tutorial (2) analysis of the applicability of php global variables learning examples of the use of php's Super global variables php global variables about php's Super global variables array about PHP variables |