RE: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Sandeep Murphy
urphy; Tim Ward; PHP List Subject: RE: [PHP] RE: Printing structure and data of array I understand now, your problem is not how display the array but how to get it in a meaningful structure in the first place i.e. $app[0]["name"] = "san"; $app[0]["age"] = "23&q

RE: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Tim Ward
om > -Original Message- > From: Sandeep Murphy [SMTP:[EMAIL PROTECTED]] > Sent: 22 January 2002 15:25 > To: 'Tim Ward'; PHP List > Subject: RE: [PHP] RE: Printing structure and data of array > > > Hey! > > No need to apologise!!! If it werent

RE: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Sandeep Murphy
:48 To: Sandeep Murphy; PHP List Subject: RE: [PHP] RE: Printing structure and data of array I may have lost the original problem, but I thought you wanted a way of displaying the structure of an array hierarchy, e.g. $fred[0][0] = array("length"=>10, "width"=>20);

Re: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Joffrey van Wageningen
quot;"; $c++; } echo ")"; } displayarr($a); ?> it prints the output just like you would enter it in your code... with kind regards, Joffrey van Wageningen ne2000.nl - Original Message ----- From: "Sandeep Murphy" <[EMAIL PROTECTED]> To: "

RE: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Tim Ward
r to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Sandeep Murphy [SMTP:[EMAIL PROTECTED]] > Sent: 22 January 2002 14:42 > To: 'Tim Ward'; PHP List > Subject: RE: [PHP] RE: Printing struc

RE: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Sandeep Murphy
Murphy; PHP List Subject: RE: [PHP] RE: Printing structure and data of array how about ... function ShowArray($array) { echo(""); foreach ($array as $key=>$value) { echo("$key") if (is_array($value)) {

Re: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Wolfram Kriesing
; > } > > function debugPrintBool($sTemp,$mVar,$bHtml){ > if ($bHtml){ > [snip] > > I'm not sure, the output 100% right but it should show how to use > it. I attached the .php file. > > Greets > > - Original Message - > From: "Sandeep Murphy"

Re: [PHP] RE: Printing structure and data of array

2002-01-22 Thread matthias.stache
tents of array one below the other... is not showing the format of the > contents as i want...:( > > any more suggestions?? > > thnx, > sands > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: terça-feira, 22 de Janeiro de 2002 1

RE: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Tim Ward
sional format?? > > I went thru most of the array functions but unable to adapt any of them.. > > pl help.. > > TIA, > sands > > -Original Message- > From: Tim Ward [mailto:[EMAIL PROTECTED]] > Sent: segunda-feira, 21 de Janeiro de 2002 10:24 > To: P

RE: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Sandeep Murphy
: terça-feira, 22 de Janeiro de 2002 12:43 To: PHP List Subject: Re: [PHP] RE: Printing structure and data of array Use this: function debugPrint($mVar, $bHtml) { if ($bHtml){ echo ""; print_r ($mVar); echo ""; } else { print_r ($mVar); } } call it like this: debu

Re: [PHP] RE: Printing structure and data of array

2002-01-22 Thread matthias.stache
l Message - From: "Sandeep Murphy" <[EMAIL PROTECTED]> To: "'Tim Ward'" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, January 22, 2002 1:00 PM Subject: RE: [PHP] RE: Printing structure and data of array > hi, > &g

RE: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Sandeep Murphy
Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: segunda-feira, 21 de Janeiro de 2002 10:24 To: PHP List; Daniel Alsén Subject: [PHP] RE: Printing structure and data of array Foreach($array as $key=>$value) ech0("$key=>$value"); Tim www.chessish.com <http

[PHP] RE: Printing structure and data of array

2002-01-21 Thread Tim Ward
Foreach($array as $key=>$value) ech0("$key=>$value"); Tim www.chessish.com -- From: Daniel Alsén [SMTP:[EMAIL PROTECTED]] Sent: 20 January 2002 19:33 To: PHP List Subject: Printing structure and data of array