Originally posted by eagle275
View Post
$hoechstezahl=max(array_keys($seiten));
Array
(
[1] => Array
(
[8] => Array
(
[uid] => 465
[site] => 1
[headline] => Einstellungen
[format] => halb
)
[9] => Array
(
[uid] => 488
[site] => 1
[headline] => Doku
[format] => halb
)
)
[2] => Array
(
[6] => Array
(
[uid] => 446
[site] => 2
[headline] => Bilder
[format] => ganz
)
)
........
for($zahl = 1; $zahl <= $hoechste_zahl; $zahl++)
{
if(!in_array($zahl, $seiten[$site]))
{
echo $zahl." fehlt<br>";
}
}
Leave a comment: