Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Conver this perl to php?

Quote Reply
Conver this perl to php?
Hiya,

Can anyone tell me how to conver this perl into php code?

Code:
foreach (keys %$ATTRIBS) {
$self->{$_} = ref $ATTRIBS->{$_} eq 'HASH'
? {%{$ATTRIBS->{$_}}}
: $ATTRIBS->{$_};
}

The $ATTRIBS hash above would be an array in php, which could also contain other arrays as the values.

getting slightly confused with myself...
regan

Last edited by:

ryel01: Nov 8, 2005, 6:16 PM
Subject Author Views Date
Thread Conver this perl to php? ryel01 6827 Nov 8, 2005, 6:15 PM
Thread Re: [ryel01] Conver this perl to php?
ryel01 6686 Nov 8, 2005, 11:04 PM
Post Re: [ryel01] Conver this perl to php?
ryel01 6673 Nov 10, 2005, 10:56 PM