[PHP] Re: Unanticipated characters returned from multidimensional array
On Sat, Aug 6, 2011 at 4:44 PM, Shawn McKenzie nos...@mckenzies.net wrote: I haven't look through it long enough to find out about the characters, but try this: foreach($tableNews as $headline = $text){ echo br; echo $text['text']; echo pre; echo $text['user']['name']; echo /pre; } That does it perfectly, thank you. It seems very likely that the unwanted characters were coming out of my jumbled logic somewhere.. Regards David
[PHP] Re: Unanticipated characters returned from multidimensional array
On 08/06/2011 08:09 AM, David Green wrote: foreach($tableNews as $headline = $text){ $new_text = $text['text']; echo br; echo $new_text; foreach ($text as $soucre = $description){ $new_description = $description['name']; echo pre; echo $new_description; echo /pre; } } I haven't look through it long enough to find out about the characters, but try this: foreach($tableNews as $headline = $text){ echo br; echo $text['text']; echo pre; echo $text['user']['name']; echo /pre; } -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php