Mailinglisten-Archive | 
> Hallo,
>
> wenn man ein foreach() verwendet sollte man vorher prüfen ob die zu
> verarbeitende Variable wirklich gesetzt ist. Ansonsten kommt es, zumindest
> beim Indianer, zu einem Absturz!
>
> if (is_array($var)) {
>    foreach ($var as $wert) {
>    }
> }
>
> Gruß
> Andre
Hallo Andre,
also ich bekomme Fehlermeldung:
Warning: Invalid argument supplied for foreach() in
C:\apache\htdocs\index.php on line 3 (Windows 2000 Apache 2.x)
bzw.
Warning: Invalid argument supplied for foreach() in /var/www/html/index.php
on line 3 (RedHat 7.2 Apache 1.x)
bei:
<?php
<?php
    foreach ($var as $tmp)
    {
        print $tmp."<br>";
    }
?
    php::bar PHP Wiki - Listenarchive