Nice, but it seems to output constants rather than strings (judging from the screenshot and code): array( #type => 'foo' ); there should be quotes around #type. I think the following will fix it: - $argsout[] = "$key => $val"; + $argsout[] = "'$key' => $val"; Steven Wittens