SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    911
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Arrow When is the best time to use CLASS?

    I'm not a newbie about PHP CLASS.
    I know it's purpose.

    the only thing that i'm always confuse, is when is the best time or situation
    to use it?

    do i need to use it every situation?

    how about add, edit, deleting a record in a database is it suitable to use it?

    thanks in advance.

  2. #2
    Keep it simple, stupid! bokehman's Avatar
    Join Date
    Jul 2005
    Posts
    1,933
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by solidcodes View Post
    when is the best time or situation
    to use it?
    When you want to reference your variables and methods in object context; otherwise use procedural (and functions for portability).

  3. #3
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    911
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks VERY NICE ANSWER...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •