Search found 1 match

by lixmde
Mon Jul 29, 2002 2:00 am
Forum: PHP - Theory and Design
Topic: Can PHP realize something like structure in C
Replies: 12
Views: 11207

Can PHP realize something like structure in C

:?: In C, it is very easy to realize this:

typedef struct user {
int ID;
char name[50]; //fixed length
}

fwrite(fp, lpbuffer, sizeof(struct user);

can PHP provide the similar function? Any sugguestion will be appreciated