Codice PHP:
class GGManager
{
static $GGs = Array();
static function getGG($id)
{
foreach(self::$GGs as $key => $GG)
{
if(self::$GGs[$key]->id == $id)
{
return $gg;
}
}
$gg = new GG($id);
self::$GGs[] = $gg;
return $gg;
}
}
![]()
Codice PHP:
class GGManager
{
static $GGs = Array();
static function getGG($id)
{
foreach(self::$GGs as $key => $GG)
{
if(self::$GGs[$key]->id == $id)
{
return $gg;
}
}
$gg = new GG($id);
self::$GGs[] = $gg;
return $gg;
}
}
![]()
Without faith, nothing is possible. With it, nothing is impossible
http://ilwebdifabio.it