Php $ special variable (output variable string corresponding variable value)

Source: Internet
Author: User
Php $ special variable (output variable string corresponding variable value)

  1. $ Var1 = 'nameofvariable ';
  2. $ NameOfVariable = 'This is the value I want! ';
  3. Echo $ var1;
  4. ?>

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.