ID: 8076 Updated by: cardinal Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Feature/Change Request Operating system: PHP Version: 4.0.3pl1 Assigned To: Comments: Use call_user_func_array Previous Comments: --------------------------------------------------------------------------- [2000-12-02 01:23:45] [EMAIL PROTECTED] In perl, I am able to pass an array to a function. When doing so, each of the array's indices apear to be scalar values to the function. When passing the equivalent form of an assicitave array to perl (hash array), the values passed to the function apear to alternate between keys and values. I am looking for this functionality in PHP, but must resort to constructing an eval() statement instead. So what I'm suggesting is a language construct, perhaps as follows: array_as_argv() - which would alternate between keys and values. array_keys_as_argv() - which would only pass the keys array_values_as_argv() - which would only pass the values This makes me think there might be a need for obj_as_argv(), but who knows? See Bug id #5350 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8076&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]