![]() Topic awaiting preservation: PHP Class attribute values (Page 1 of 1) |
|
|---|---|
|
Bipolar (III) Inmate From: |
posted 01-06-2010 05:51
Issue: code: class User {
public $dtUpdated;
public $access= 1;
public $banned = 0;
}
code: class User {
public $dtUpdated = strftime("%Y-%m-%d %H:%M:%S", time());
public $access= 1;
public $banned = 0;
}
|
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-06-2010 09:38
because you can only initialize this kind of attribute to constant values. |
|
Bipolar (III) Inmate From: |
posted 01-06-2010 16:10
I just want to thank you Tyberius Prime very much. It worked perfect i should have thought of that. I noticed you always answer my very quickly with really good advice and i want you to know i appreciate it. |