<?php class T { public $te1; public $te2; } $tCollection = []; for($i=0;$i<10;$i++) { $t = new T(); $t->te1 = random(); $t->te2 = random(); $tCollection[] = $t; } var_dump($tCollection);
You have javascript disabled. You will not be able to edit any code.