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
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
: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);
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: "
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
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))
{
;
> }
>
> 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"
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
{ echo("=>$value");
}
echo("")
}
echo("");
} // end of fn ShowArray
Tim
www.chessish.com
> -Original Message-
> From: Sandeep Murphy [SMTP:[EMAIL PROTECTED]]
> Sent: 22 January 2002 12:01
> To: &
: 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
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
hi,
how can I display the array exactly as it is the format specified??? like if
their exists sub elements of elements, how could I represent them in a
multidimensional format??
I went thru most of the array functions but unable to adapt any of them..
pl help..
TIA,
sands
-Original Messag
12 matches
Mail list logo