Jump to content

empty a variable variable


muppet77

Recommended Posts

(What is the advantage of not using variable variables?)

 

 

variable variable references take three times longer then an equivalent array reference.

 

if you have a set of related data, that's what arrays are for. you can then use php's array functions to operate on the data, generally without any need to explicitly loop over each value and without writing out line after line of code referencing each discrete variable.

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.