Hi! I have an multidimensional array with contents like: $myarr["url"][]="http://www.example.com"; $myarr["img"][]="http://www.example.com/test.gif"; $myarr["text"][]="example.com";
I want to display all entries like: for ($i=0; $i<count($myarr["url"]); $i++) { picturedlink($myarr["url"][$i],$myarr["img"][$i],$myarr["text"][$i]); } On the line with count I get an Error: "Uninitialized string offset: 0", when I have error_reporting(E_ALL); for debugging. But it works as expected (returning 1 in this example). As php considers this to be wrong, what would be right? Of course, I could just switch error_reporting to some lower level - but how would the clean solution look like? Thanks Timo -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php