Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Junior Member UserXP's Avatar
    Join Date
    Apr 2003
    Posts
    2
    Member #
    1212
    Hi all, Nice Forum here!
    Can anyone tell me the difference between php and object oriented php?

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    One uses OOP, the other doesn't

    How OOP works in PHP: http://www.php.net/oop

    PHP's object orientation is very weak but it gets the job done, usually. I don't think you can even have private/public functions/variables.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    What versions of PHP support OOP?

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    What I hate about PHP OOP is that all properties and methods are referenced Class->method instead of Class.method as if everything was instantiated as C++ heap objects.

    I understand that they did it because the dot(.) is used for concatenation, but I still hate it.

  6. #5
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    Originally posted by transio
    What I hate about PHP OOP is that all properties and methods are referenced Class->method instead of Class.method as if everything was instantiated as C++ heap objects.

    I understand that they did it because the dot(.) is used for concatenation, but I still hate it.
    I completely agree.. I prefer class.method any day rather than -> mostly because -> is a pain in the *** to type out if you're coding a lot. That and the whole array=> thing is way too similar in my book with being a completely different feature...

    But, I suppose there's just little pro's and cons to every language.. In the same manner I hate ASP for using = for both tests and statements...

    Oh well.There's only so many keys on the keyboard
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Originally posted by Brak
    Oh well.There's only so many keys on the keyboard
    The number of keys or characters has nothing to do with how well the language is designed. Both of what you mentioned are flaws of the respective languages, and reasons I don't like either of them 100% (among others).


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:21 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com