Php ---- variables of variables recently some friends who are new to php are talking about "variables of variables ". Here is an example. & Lt ;? Php defines a variable $ studentxiaoming; $ newstudenthao ;? & Gt ;? In fact, the final effect is the same as that of $ xiaominghao .? To put it simply: start to define the variables of php ---- variables
Recently, a friend who has just been familiar with php is talking about "Variable variables ". Here is an example.
? 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.