Someone has requested me to add a new feature to get PHP array back as a Perl array, in PHP::Session.
I think it can be done if we have a new method
Suggestions are welcome.
I think it can be done if we have a new method
get_array()
, to implicitly get array variables as Perl arrray ref:sub get_array {Additionaly, we can allow an object option (like auto_interpolate_array) to allow automatic conversion from PHP array to Perl array.
my($self, $key) = @_;
my $hashref = $self->get($key);
return [ map $hashref->{$_}, sort { $a <=> $b } keys %$hashref ];
}
Suggestions are welcome.
show session array issues
Posted by: anurag shukla | 2005.06.10 at 00:26