Differences between PHP4 and PHP5

Discussion in 'PHP' started by largn81, Jan 26, 2008.

  1. #1
    Hi,
    I am an old PHP4 programmer; at the moment I don't see the point to switch to PHP5 since it would require some learning curve, but what are the real differences between the two versions? Is there a real improvement? As far as I know the only difference is for the implementation of an object oriented programming structure, but I don't know of further innovations. Any help is greatly appreciated!
    :)
     
    largn81, Jan 26, 2008 IP
  2. Gawk

    Gawk Peon

    Messages:
    427
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
  3. xxKillswitch

    xxKillswitch Peon

    Messages:
    331
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You really should check it out. There are quite a few differences. I myself was a 4 guy, but I starting looking ahead and getting into 5. There is alot of good shortcuts that 4 doesn't have and alot more magic methods. The learning curve really didn't even seem to exist to me, it was just really easy to pick up on and use. No more than a few days reading over and learning 5 and I use it regularly and efficiently.
     
    xxKillswitch, Jan 26, 2008 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    PHP 4 is dead. The support for it ended officially this year.

    And as xxKillswitch said, there are a lot of new and very useful functions which you should not miss. (SimpleXML being my favorite example.)

    Update... it isn't much effort, and most scripts written for PHP 4 will still work with PHP 5, so you have nothing to lose.
     
    nico_swd, Jan 27, 2008 IP