Page 1 of 1
Structs in PHP
Posted: Thu Mar 11, 2004 7:55 pm
by Kon-Tiki
I was wondering if Structs are possible in PHP... can't find any good proof for that being possible, nor for being impossible :-\
Re:Structs in PHP
Posted: Thu Mar 11, 2004 10:04 pm
by AGI1122
Now what exactly is a struct? :-X
Re:Structs in PHP
Posted: Thu Mar 11, 2004 10:08 pm
by Kon-Tiki
Structs like in C++...
Struct Book -> Var Author
-> Var Title
-> Var Edition
-> Var ISBN
Book.Author accesses the var Author.
Book.Title accesses the var Title.
etc.
Such Structs...
Re:Structs in PHP
Posted: Thu Mar 11, 2004 11:39 pm
by Candy
you even have entire classes in php. Yes, they're structs with functions.
Re:Structs in PHP
Posted: Fri Mar 12, 2004 12:34 am
by AGI1122
Re:Structs in PHP
Posted: Mon Mar 15, 2004 1:02 pm
by Kon-Tiki
Woo-hoo-hoo-hoow! These classes're even more useful than structs ;D Tiki goes coding now. Thanks for the help