is it possible to pass parameters to an assoc array?

buycannabiskn

New Member
think about an array like this:\[code\]..."key1" => some_call("val1", $params),"key2" => some_call("val1", $params),...\[/code\]now i want to pass parameters ($params) when addressing my array entries\[code\]$x = $array['key1'] , $params ... \[/code\]is there some way to do something like this?UPDATEwhy 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 loademail templates, where i pass a parameter which holds the values which shell be replaced in the template.UPDATE 2for php 5.2.*
 
Back
Top