Structs in PHP
Structs in PHP
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
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...
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
you even have entire classes in php. Yes, they're structs with functions.
Re:Structs in PHP
Woo-hoo-hoo-hoow! These classes're even more useful than structs ;D Tiki goes coding now. Thanks for the help