Re: [PHP-DEV] Passing structure to PHP function

2004-08-23 Thread Michael Spector
On Mon, Aug 23, 2004 at 11:10:16AM -0700, Rasmus Lerdorf wrote: > 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

Re: [PHP-DEV] Passing structure to PHP function

2004-08-23 Thread Rasmus Lerdorf
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 o

[PHP-DEV] Passing structure to PHP function

2004-08-23 Thread Michael Spector
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