Post by rmac » Thu Jul 23, 2009 4:15 pm

Hi,

Please have a look at the snippet below.

// Register Globals Fix...

...foreach ($globals as $global) {
foreach(array_keys($global) as $key) {
unset($$key);//looks like an error to me...

Is that '$$key' right?

regards

rmac

Newbie

Posts

Joined
Wed Jul 22, 2009 5:56 pm

Post by Daniel » Thu Jul 23, 2009 8:15 pm

yes its correct!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by rmac » Fri Jul 24, 2009 1:44 pm

Hi,

Sorry about the false alarm.

I'm just coming up to speed in PHP;could you explain the significance of the $$var notation. I can't seem to find it in the manual.

Thanks

rmac

:)

Newbie

Posts

Joined
Wed Jul 22, 2009 5:56 pm
Who is online

Users browsing this forum: No registered users and 25 guests