|
As big a role as you like. You can code procedurally and pass random stuff to every function under the sun, decide that everything is an object and you're going to follow some obscure mantra, or anything in between. PHP's like C++ in that regard - do what you're most comfortable with. I personally like classes, but in the end it's up to you.
The same goes for your next question. There are a bazillion and a half different ways of coding professionally. If you can understand and document your code with ease, you're probably doing better than half the pros out there.
|