fraknot
10-22-2004, 04:00 PM
Hi.
Just finished a C program that sets a 'tree' data structure, that means, a struct with different data types inside of it and two pointers like this:
struct Tree{
char character;
struct Tree *Left;
struct Tree *Right;
};
Is there any way to do something similar in PHP? basically pointers? I was thinking about classes with references... but the manual says "References are NOT pointers".
Thanks!
Just finished a C program that sets a 'tree' data structure, that means, a struct with different data types inside of it and two pointers like this:
struct Tree{
char character;
struct Tree *Left;
struct Tree *Right;
};
Is there any way to do something similar in PHP? basically pointers? I was thinking about classes with references... but the manual says "References are NOT pointers".
Thanks!