Jump to content

[SOLVED] Defining a variable name based on another variable.


Cless

Recommended Posts

Is there any way to define a variable name which is based on another variable?

 

For example, if I had defined a variable named $blah, and gave it the value pie, would it be able to create a new variable with a name based on the value of $blah?

 

In other words, the new variable name would be $pie, since the value of $blah is pie.

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.