id_user = $user["id"]; $this->credits = $user["credits"]; foreach($technoloVAR as $tech){ $this->technologies[] = $user[$tech]; } } function calculerTechnologies(){ global $technoloCALC; $pointstech = 0; $planete = $this; foreach($this->batiments as $k => $n){ eval($technoloCALC[$k][0]); eval($technoloCALC[$k][1]); eval($technoloCALC[$k][2]); $pointstech += $a + $b + $c; } return $pointstech; } } ?>