OSDev.org

The Place to Start for Operating System Developers
It is currently Thu May 02, 2024 3:09 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Structs in PHP
PostPosted: Thu Mar 11, 2004 7:55 pm 
I was wondering if Structs are possible in PHP... can't find any good proof for that being possible, nor for being impossible :-\


Top
  
 
 Post subject: Re:Structs in PHP
PostPosted: Thu Mar 11, 2004 10:04 pm 
Now what exactly is a struct? :-X


Top
  
 
 Post subject: Re:Structs in PHP
PostPosted: Thu Mar 11, 2004 10:08 pm 
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...


Top
  
 
 Post subject: Re:Structs in PHP
PostPosted: Thu Mar 11, 2004 11:39 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 11:33 pm
Posts: 3882
Location: Eindhoven
you even have entire classes in php. Yes, they're structs with functions.


Top
 Profile  
 
 Post subject: Re:Structs in PHP
PostPosted: Fri Mar 12, 2004 12:34 am 
This is known as OOP in PHP.

http://www.php.net/manual/en/language.oop.php


Top
  
 
 Post subject: Re:Structs in PHP
PostPosted: Mon Mar 15, 2004 1:02 pm 
Woo-hoo-hoo-hoow! These classes're even more useful than structs ;D Tiki goes coding now. Thanks for the help :)


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group