paddy100 Posted August 16, 2011 Share Posted August 16, 2011 Hi all, Ive taken a keen interest in PHP for the last few months and was wondering. What is a PHP class and when should I use one? Paddy Quote Link to comment https://forums.phpfreaks.com/topic/244948-php-class-what-is-it-for-and-when-to-use-it/ Share on other sites More sharing options...
KevinM1 Posted August 16, 2011 Share Posted August 16, 2011 Classes have to do with Object Oriented Programming. You should learn the basics of PHP (and scripting in general) before trying your hand at OOP. Quote Link to comment https://forums.phpfreaks.com/topic/244948-php-class-what-is-it-for-and-when-to-use-it/#findComment-1258250 Share on other sites More sharing options...
Clarkeez Posted August 16, 2011 Share Posted August 16, 2011 Yea, If I were you, I'd learn the code until your a comfy with it first. I had trouble understanding what was the point and why don't I just use function instead etc etc etc.. But when you are ready, check this out, it really helped me -> http://www.phpfreaks.com/tutorial/oo-php-part-1-oop-in-full-effect Quote Link to comment https://forums.phpfreaks.com/topic/244948-php-class-what-is-it-for-and-when-to-use-it/#findComment-1258308 Share on other sites More sharing options...
jcbones Posted August 16, 2011 Share Posted August 16, 2011 I also found this tutorial to be very helpful and informative. Quote Link to comment https://forums.phpfreaks.com/topic/244948-php-class-what-is-it-for-and-when-to-use-it/#findComment-1258310 Share on other sites More sharing options...
paddy100 Posted August 17, 2011 Author Share Posted August 17, 2011 Thanks guys, for the advice. Quote Link to comment https://forums.phpfreaks.com/topic/244948-php-class-what-is-it-for-and-when-to-use-it/#findComment-1258343 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.