Hello,
think about an array like this:
...
"key1" => some_call("val1", $params),
"key2" => some_call("val1", $params),
...
now i want to pass parameters ($params) when addressing my array entries
$x = $array['key1'] , $params ...
is there some way to do something like this?
UPDATE
why would i like to do this? i am using codeigniter and in the language file is an assoc array, where the right side holds the text in its predicted language. i want to abuse this a little bit and want to load email templates, where i pass a parameter which holds the values which shell be replaced in the template.
UPDATE 2
for php 5.2.*