Auch Tach
hier mein code...
$stunden = "7,8,9,10,11,";
$count = "1";
while($count < 12)
{
$suche = "$count,";
if (preg_match('/$suche/', $stunden))
{
echo "$count / jaaaa<br>";
}
$count++;
}
Ich tät's so machen:
$stunden = "1,2,3,4,5,9,12,14,";
$sa = explode(",", $stunden);
for($i=1; $i<13; $i++)
{ if(in_array($i, $sa))
echo "Tüte Popcorn (".$i.") !"; }
Ciao,
Harry