SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2012
    Location
    California
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    OK to study PHP 5.2?

    I have a basic understanding of programming/scripting via JavaScript and I'm just beginning to study PHP. I have a subscription to lynda.com and I'm considering taking the entry-level PHP course that they offer. The only problem is that it's from 2007 and it uses PHP 5.2 and MySQL 5.0. Would it be advisable, in late 2012, to study these older versions, or has too much changed since then?

    Thanks!

  2. #2
    Non-Member
    Join Date
    Oct 2007
    Posts
    363
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    The latest version of php is php 5.4. There were some changes to php 5.3 and then to php 5.4, but pretty much everything you learn in a course on php 5.2 will be usable. I'd suggest for a beginner to php, you should be fine to start there.

  3. #3
    PHP Guru lampcms.com's Avatar
    Join Date
    Jan 2009
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's usually good to know some older versions of the program and not just the latest version.
    it really depends on what you want to do. If you plan on becoming professional php developer then chances are you will see programs written
    in older versions of php, like 5.2 for example.

    It's generally good to know since what version a certain feature of php became available.

    You should always know that latest stable version of the program and maybe some features from development version, so regardless of whether or not you plan on learning 5.2 you definitely must learn 5.3 and then some of the newest features in 5.4
    My project: Open source Q&A
    (similar to StackOverflow)
    powered by php+MongoDB
    Source on github, collaborators welcome!

  4. #4
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,826
    Mentioned
    142 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by lampcms.com View Post
    You should always know that latest stable version of the program and maybe some features from development version, so regardless of whether or not you plan on learning 5.2 you definitely must learn 5.3 and then some of the newest features in 5.4
    I'd like to just iterate that a different way. I don't necessarily agree that you MUST learn 5.3 and 5.4, but I will say it this way:
    You MUST be able to find out what changed in the newer versions
    It is a known fact that books become obsolete quickly. Finding a book that is using 5.2 is perfectly acceptable and in 98% of the examples will work flawlessly using 5.3 or 5.4 of PHP. Whenever you run into an issue with PHP (regarding a function parameter mismatch, or you want the parameter to perform a bit differently), your first visit should be to http://php.net and searching on that function! You will be amazed how some additional parameters/functionality were added in newer versions of PHP.
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes


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
  •