Mistři v programování na #hovnokod

PHP #842

// Uhadni co to dela...
$list = array_map(function($val){return false;}, array_flip($valMap));

foreach($items as $radioValue => $item) {
	$list[$radioValue] = $printRadio($radioValue);
}

foreach($list as $radio) {
	if (!$radio) {
		echo '<td></td>';
	} else {
		echo $radio;
	}
}

// Napovim ......
foreach($valMap as $radioValue) {
	echo isset($items[$radioValue]) ? $printRadio($radioValue) : '<td></td>';
}

rbas,