- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
public function k($heh) {
return ($heh == "") ? rand() : $heh;
}
// ...
$stars += count(array_intersect(
array($this->k($this->id_type), $this->k($this->id_type2), $this->k($this->id_type3)),
array($this->k($that->id_type), $this->k($that->id_type2), $this->k($that->id_type3))
));
// ...
guest 19.03.2016 18:05 # 0
Uhehesh 19.03.2016 18:08 # 0
и вот таким способом я и решил это реализовать.