Re: Passing structure to PHP function
| From: | Rasmus Lerdorf | Date: | Mon, 23 Aug 2004 18:10:16 +0000 |
| Subject: | Re: Passing structure to PHP function | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12311@lists.php.net to get a copy of this message | ||
On Mon, 23 Aug 2004, Michael Spector wrote:
> I'm "translating" some function, that recieves a pointer to structure of
> this type:
>
> struct {
> char * text;
> char ** value;
> int flags;
> };
This looks like a string, an array and an integer to me. So just pass
that. Or an array of those if there is more than one.
-Rasmus