How best to print an array to table?
- From: richard <member@xxxxxxxxxxx>
- Date: Thu, 24 May 2012 18:28:27 -0400
Ok so here's the quick and dirt simple code:
<?php
$Alist=array (
"cover"=>"images/A/A001.jpg",
"aname"=>"The A Team",
"bname"=>"An Empty Glass",
"artist"=>"SSgt Barry Sadler",
"avideo"=>"A",
"bvideo"=>"b",
"label1"=>"[US] RCA Victor",
"label2"=>"UK] RCA",
"adate"=>"4-23-66"
);
print "<table border='1'>";
print "<tr>";
print "<td>hello</td>";
print "</tr>";
print "</table>";
?>
I want to replace "hello" with $Alist "aname".
How is that done correctly in this instance?
.
- Follow-Ups:
- Re: How best to print an array to table?
- From: richard
- Re: How best to print an array to table?
- From: Michael Fesser
- Re: How best to print an array to table?
- Prev by Date: Re: What is this attack trying to do?
- Next by Date: Re: How best to print an array to table?
- Previous by thread: What is this attack trying to do?
- Next by thread: Re: How best to print an array to table?
- Index(es):