Hello,Can anyone look at this:
Here is my class
<?php
class A {
var $list;
function m1() {
$this->m2($this);}
function m2($objet) {
$objet->list[]="3"; //add "3" to the array $objet->list
echo "<BR>size of objet->list :" . count($objet->list);}
function ccount(){
echo "<BR>size of this->list:" . count($this->list);}
}
?>
When i do
<?php require("A.class");
$s= new A();
$s->m1();
$s->ccount();
?>
i get
size of objet->list :1
size of this->list :0
is it normal ? (i think that we should have $object==$this")