[PHP] printing an array

2002-10-24 Thread Chris Grigor
Hey there all Im sure that someone out there can answer this question.. I have a problem, how can I print each element in an array so that is returned into a table? eg table width=100% th width=25% nowrap Test1 /th th width=25% nowrap Test2 /th th width=25% nowrap Test3 /th th width=25% Test4

Re: [PHP] printing an array

2002-10-24 Thread @ Edwin
Hello, Chris Grigor [EMAIL PROTECTED] wrote: Hey there all Im sure that someone out there can answer this question.. I have a problem, how can I print each element in an array so that is returned into a table? First, make sure that you have your tr/tr's in the proper places. Then, make

[PHP] Printing an array

2002-03-19 Thread Alexander Skwar
Hello! I'd like to print an array kinda like the way it was created. Ie., I've got the following array: $r[0][0]['name'] = 'joe'; $r[0][0]['gender'] = 'male'; $r[0][0]['prop'] = 'prefs'; $r[0][0][0]['text'] = 'mail'; $r[0][0][0]['set'] = 'yes'; $r[0][0][1]['text'] = 'phone'; $r[0][0][1]['set']

Re: [PHP] Printing an array

2002-03-19 Thread scott furt
...because you never shrink $prefix after output(), try array_pop($prefix); Alexander Skwar wrote: Hello! I'd like to print an array kinda like the way it was created. Ie., I've got the following array: $r[0][0]['name'] = 'joe'; $r[0][0]['gender'] = 'male'; $r[0][0]['prop'] =

Re: [PHP] Printing an array

2002-03-19 Thread Alexander Skwar
»scott furt« sagte am 2002-03-19 um 05:28:51 -0500 : ...because you never shrink $prefix after output(), try array_pop($prefix); Awesome! This works! *THANKS* a lot! I was fighting with this for a whole day :) Alexander Skwar -- How to quote: http://learn.to/quote (german)