Jump to content

Roll of OOPS in PHP

- - - - -

  • Please log in to reply
2 replies to this topic

#1
justsachin4u

justsachin4u

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
I am using PHP for last one year. My basics of PHP are clear. But I don't have any knowledge in OOPS. I know PHP is also OOPS based. So tell me how is it necessary to learn OOPS for working in PHP? I saw several PHP tutorials on net like w3schools, tizag etc. but none of those teach OOPS. So what does it mean - OOPS is only an option or an enhancement to do more complex task. Means websites can be easily created without having any knowledge of OOPS. So OOPS is not mandatory. Frankly speaking I don't have any interest in OOPS. So i don't learn it. Although there are some beginners tutorials of OOPS on net but i have no wish to read those. I still making my own dynamic webpages very well. So if any one has good answers of my question, plz tell me. I'l be very thankful to him.

#2
Revolt

Revolt

    Programmer

  • Members
  • PipPipPip
  • 99 posts
Object Oriented Programming is just an alternative way to code that tries to model what happens in real life where results are obtained through interaction between objects. Most php scripts stick to the traditional functional programming where results are obtained through a sequence of function calls. This corresponds to functional or procedural programming.

By no means should your lack of OOP knowledge prevent you from programming in PHP since this language doesn't enforce a OOP model (as opposed to Java for example). Having said that, OOP is actually quite an awesome paradigm that provides several benefits regarding code abstraction, encapsulation and re-use. If your only reason for not learning it is because you never needed it, I recommend you give it a try! Who knows, maybe you'll find that you like it more than functional programming!

Edited by Revolt, 11 July 2011 - 01:50 AM.


#3
justsachin4u

justsachin4u

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
thanx for clearing the confusion.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users