|
Posted by hector on 05/13/05 17:09
<chernyshevsky@hotmail.com> wrote in message
news:1115988562.473810.105880@f14g2000cwb.googlegroups.com...
> PHP classes/structs are hash tables. The wrapper has to rebuild the
> structure by searching the table and filling in the elements.
> Unfortunately the manual doesn't say much on this topic. The function
> you need is zend_hash_find() if I remember correctly.
Ok, I kinda of saw this. Wasn't sure if this was the only method. Thanks
for clarifying it.
think I can really fly with this if I can see an example PHP script, lets
say for a simple typedef example:
typedef struct _TFooBar {
BOOL fBoolean;
int iNumber;
char szString[256];
} TFooBar;
What is the PHP script for this? Whats the interface like?
Do I have to expose each field as a Function "Get/Put" like method?
--
Hector Santos, Santronics Software, Inc.
http://www.santronics.com
Navigation:
[Reply to this message]
|