Page 1 of 1
php class
Posted: Sun Jun 10, 2007 4:44 am
by m2babaey
Hi
I searched by Google but did not find a good tutorial for php classes. if you know somewhere please let me know
Posted: Sun Jun 10, 2007 5:08 am
by volka
Posted: Sun Jun 10, 2007 8:34 am
by m2babaey
thanks
php.net pages are not usually enough for a beginner like me
Posted: Sun Jun 10, 2007 10:35 am
by Benjamin
Posted: Sun Jun 10, 2007 2:32 pm
by impulse()
I have only recently understood the need for classes. Beforehand I spent many hours reading tutorials and books over and over but it never quite clicked as to why OOP was praised so much. It was only untill I was asked to write a class at work and somebody went through and showed me the advantages that I truly understood why anyone would want to write code in OOP.
So I suggest looking at existing classes and try and understand what that code would look like if it weren't OOP and how the performance would be affected.