Jump to content

OOPHP class structure


RopeADope

Recommended Posts

Hi all.

 

I'm starting a mini-project with the purpose of creating PHP generated charts.  I just had a quick question on the class structure that I should use.  My instinct tells me to do it like this:

class chart{
   function pie(){
   }
   function bar(){
   }
}

 

Is that a legitimate structure or is there a better way to do this?

Link to comment
https://forums.phpfreaks.com/topic/236541-oophp-class-structure/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.