php 5 constructor

Discussion in 'PHP' started by brealmz, Jun 10, 2007.

  1. #1
    php 5 has a unified constructor function __constructor().

    my question is contructor from previous version which use class name as function still working on this version?

    im asking this because im using php 4 as of now and if possible id like it to work also on PHP 5.
     
    brealmz, Jun 10, 2007 IP
  2. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's actually __construct() but yes...

    from the manual
     
    rodney88, Jun 10, 2007 IP
    brealmz likes this.