Hi, I was wondering if I am going to make a social networking site if it was neccesary for me to understand how classes are used? Do i need to use classes or can I just use a series of functions?
garyjohnson 14 Junior Poster
Recommended Answers
Jump to PostClasses are part of Object Oriented Programming concept (OOP). PHP first supported only traditional procedural programming style but with version 5 (and partly four) the OOP functionality was added. It has been mature for quite some time now and many functions have both versions (i.e.
Jump to PostAs pritaeas states, you can make it with procedural code / functions, but this would be unwise. Just because you can, doesn't mean that you should. AT first glance classes and their methods may seem like normal functions wrapped up in some class thingy. But this isn't the case. OOP …
All 7 Replies
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
garyjohnson 14 Junior Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
broj1 356 Humble servant Featured Poster
veedeoo 474 Junior Poster Featured Poster
<M/> 170 Why so serious? Featured Poster

diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.