Both of your answers, Paolo and ruthless, excellent, thank you very much!
If I want two properties to be kept in sync:
function MyClass() {
$this->array2 = &$this->array1;
}
If I want both arrays to have the same values initially, but then want to individually change them, I delete '&':
function MyClass() {
$this->array2 = $this->array1;
}
Stemar
source
share