declare field without initial value in php?

Posted by Charles on Stack Overflow See other posts from Stack Overflow or by Charles
Published on 2010-04-04T14:17:28Z Indexed on 2010/04/04 14:23 UTC
Read the original article Hit count: 158

Filed under:
|

I don't want to give an initial value. I want to set these later using the set method

class Duck {
    var int id;
    var set = Array();
}

Any idea how to declare without getting error?

© Stack Overflow or respective owner

Related posts about php

Related posts about object-oriented-design