- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
function func($microsoft,$corn)
{
$tomato=array();
if(!isset($corn[$microsoft])) return NULL;
foreach($corn[$microsoft] as $potato=>$pizza)
{
$tomato[]=$pizza;
$wine=$this->func($microsoft.$pizza['name'].'/',$corn);
if($wine)
foreach($wine as $anchouses)
$tomato[]=$anchouses;
}
return $tomato; //Где мой тамат СУКА!
}