Passing structure to PHP function

From: Date: Mon, 23 Aug 2004 17:56:08 +0000
Subject: Passing structure to PHP function
Groups: php.internals 
Request: Send a blank email to internals+get-12310@lists.php.net to get a copy of this message
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

« previous php.internals (#12310) next »