Jump to content

Will someone example with code snippet to me in words?


cgm225

Recommended Posts

First, I must say this is some ugly piece of code.

This goes over all of the elements in $this->viewData. Then it creates a variable for every value, and the name of the value (the variable name) is the key's value.

 

 

Example

If viewData contains

[keyname] => "value",
[something] => "random_val"

 

Running these two lines will create two variables: $keyname, $something (The first with the value "value" and the second holding "random_val").

 

 

Orio.

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.