Hi,

I'm "translating" some function, that recieves a pointer to structure of
this type:

struct {
    char * text;
    char ** value;
    int flags;
};

and I'm get stuck here, thinking of a legal way how to pass the list of
structures to my PHP function. I thought to pass it in this way:

myfunc (
                array(
                        array("text" => $text1, "value" => &$value1, "flags" => 
flags1),
                        array("text" => $text2, "value" => &$value2, "flags" => 
flags2),
                        ...
                )
);

but, I wonder whether this way is acceptable? Anyway, is there another
solution to this problem?

Thanks.


-- 
Best regards,

Michael

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to