Home > Backend Development > PHP Tutorial > Composition about my Chinese dream Chinese variable description in PHP

Composition about my Chinese dream Chinese variable description in PHP

WBOY
Release: 2016-07-29 08:46:14
Original
1055 people have browsed it

A valid variable name in PHP starts with a letter or an underscore, followed by any number of letters, numbers, or underscores. According to normal regular expressions, it will be expressed as: '[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*'.
Note: The letters mentioned here are a-z, A-Z, and ASCII characters from 127 to 255 (0x7f-0xff).

Copy code The code is as follows:


$var = 'Bob';
$Var = 'Joe';
echo "$var, $Var"; // Output "Bob, Joe"
$4site = 'not yet'; // Illegal name change; starts with a number
$_4site = 'not yet'; // Legal variable name; starts with an underscore
$isite is = 'mansikka'; // Legal variable names; can be in Chinese
?>


 PHP里的中文变量说明
Someone just gave me a php file. When I opened it, I was shocked. Could it be that the legendary Chinese programming is so easy to be implemented in PHP? I just turned it over Check out the Chinese PHP manual, there are indeed examples of Chinese variables
The above has introduced the description of Chinese variables in PHP, including the content of the composition about my Chinese dream. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template