bir assoc dizi parametreleri geçirmek mümkün mü?

0 Cevap php

Böyle bir dizi düşünmek:

...
"key1" => some_call("val1", $params),
"key2" => some_call("val1", $params),
...

Şimdi benim dizisi girdileri ele alırken parametreleri ($ params) geçmek istiyorum

$x = $array['key1'] , $params ... 

Böyle bir şey yapmak için bir yolu var mı?

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

5.2 php için. *

0 Cevap