Introduction: This is a detailed page of PHP-variable variables. It introduces PHP, related knowledge, skills, experiences, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 329767 'rolling = 'no'>
Recently, a friend who has just been familiar with PHP is talking about "variable variables ". Here is an example.
<? PHP // define a variable $ student = "Xiaoming"; $ newstudent = "hao";?>
In fact, the final result is the same as $ Xiaoming = "hao. To put it simply, the value of the variable $ student is defined as Xiaoming. You do not need to create another variable named $ Xiaoming or assign a value to it. You can use $ newstudent directly to achieve this purpose. Create a new variable based on the current value of $ student and assign the Hao value to the new variable. ------- You can create dynamic variables and assign values to them.
More articles about "php ---- variable variables"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/329767.html pageno: 12.