Is there a php library I can use to convert an associative array in perl to an associative array in php ? If not, is there any recommended way of doing this ? Regular expressions ? A bunch of explode and implode calls ?
I want to go from
my %arrayname = (
key1 => "Value1",
key2 => "Value2",
key3 => "Value3",
...
to
$arrayname = array(
"key1" => "Value1",
"key2" => "Value2",
"key3" => "Value3",
$arrayname = array(…). Also, you're basically trying to parse Perl source code into PHP?