Qualcuno mi puo aiutare a trovare dove sta l'errore nel seguente codice? Lo sto guardando da troppo tempo e non ne vengo a capo...
Mi aspetterei di avere come risultato 8 e 8 invece vien fuori 8 e 0... perche mai?codice:<? class Test { var $numbers; function howmany() { echo (count($numbers)); } } $t = new Test; $t->numbers = array(5,5,6,7,23,4,5,7); echo (count($t->numbers)." "); $t->howmany();
tnx
nICO