Hiya,
Can anyone tell me how to conver this perl into php code?
$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
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