Спасибо большое, очень помогли... но это не все... еще нужно классы описать... Пожалуйста) <?php class Player { public $hand=array(); public $numHand; public $countDominoInHand; public $score; public function printHand() { //var_dump($this->getHand()); foreach($this->getHand() as $ff) echo ' '.$ff; echo '<br/>getcountDominoInHand() - '; echo $this->getcountDominoInHand(); echo '<br/>getnumHand() -'; echo $this->getnumHand(); echo '<br/>--end printHand()<br/>'; } function __construct($numHand) { $this->setnumHand($numHand); $this->score=0; } public function getScore() { return $this->score; } public function setScore($score){ $this->score=$score; } public function removeFromHand($domino) { unset($this->hand[$domino]); } public function shuffleHand() { shuffle($this->hand); } public function getHand() { return $this->hand; } public function setHand($domino){ $this->hand[]=$domino->getDomino(); } public function getnumHand() { return $this->numHand; } public function setnumHand($numHand){ $this->numHand=$numHand; } public function getcountDominoInHand() { return count($this->hand); } public function clearHand() { $this->hand=NULL; } } ?>