Trying to understand how to get an array to html coding.
I have this for the array…
[php]
class dataTable{
private $data = array(
array(‘name’=>‘Mr. Jon Jones’,‘state’=>‘NV’,‘company’=>‘123 Construction’,
‘phone’=>array(
‘cell’=>‘5552223333’,
‘office’=>‘5552220001’
),
‘email’=>array(
‘primary’=>‘[email protected]’,
‘[email protected]’
)
),
array(‘name’=>‘Bree Young’,‘city’=>‘Tucson’,‘phone’=>‘5553331111’,‘email’=>‘[email protected]’),
array(‘name’=>‘Jason Bourne’,‘city’=>‘New York City’,‘company’=>‘Bourne Electricity’,‘email’=>array(‘[email protected]’,‘personal’=>‘[email protected]’),‘phone’=>‘6021110000’)
);
}
[/php]
and this as the out going source for the HMTL table…
NAME | COMPANY | CITY | STATE | PHONE | |
---|---|---|---|---|---|
Mr. Jon Jones | 123 Construction | NV |
primary: [email protected] [email protected] |
cell: (555) 222-3333 office: (555) 222-0001 |
|
Bree Young | Tucson | [email protected] | (555) 333-1111 | ||
Jason Bourne | Bourne Electricity | New York City |
[email protected] personal: [email protected] |
(602) 111-0000 |
Can someone lead me to a tutorial to help me out with this and I can go from there? Or perhaps just write up a mock code that’ll get me started?