Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UDF vs CLASS - Which is best to use and why?

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
I am writing more and more PHP code and it is an old habit to create UDFs so that I can re-use my code.

I am aware of the CLASSES but I do not fully understand them and wonder how much am I missing out for it.

In the same token, I wonder if there is a real added value when using UDFs over CLASSES. I mean, I can call a function and have it return value or send content to screen. I feel that CLASSES are best for writing OOP Apps and that is exactly what I am working on (I think).

So, what do you guys think?

Also, is there a PHP CLASSES for the clueless guide some where?

Thank you all!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top