variable inside a variable in a php class

Posted by rizxta on Stack Overflow See other posts from Stack Overflow or by rizxta
Published on 2010-03-22T10:15:12Z Indexed on 2010/03/22 10:21 UTC
Read the original article Hit count: 506

Filed under:

is it possible to copy a variable like this this?

class Colours {
   var $var = "one";
   var $var2 = array('something', $var);
}

© Stack Overflow or respective owner

Related posts about php