I have seen all the questions that are relative with mine, and still didn't find any soloution to my 'simple' problem. I have a 3dimensional array and i just want to display the results. But when it's tome to echo the . "<td>".$person ['job']."</td>" i am getting errors. Any advice thnx
$people= array(
array(
"name" => "Jennifer Kimbers",
"age"=>"45",
"email" => "[email protected]",
"city" => "Seattle",
"state" => "Washington"),
array(
"job"=>"web developer"
),
array(
"name" => "Rodney Hutchers",
"age"=>"55",
"email" => "[email protected]",
"city" => "Los Angeles",
"state" => "California"),
array(
"job"=>"data developer"
);
echo "<table>"
."<th>FullName</th>"
."<th>Age</th>"
."<th>Email</th>"
."<th>City</th>"
."<th>State</th>"
."<th>Job</th>";
foreach ($people as $person) {
echo "<tr>"
. "<td>" . $person ['name'] . "</td>"
. "<td>" . $person ['age'] . "</td>"
. "<td>" . $person ['email'] . "</td>"
. "<td>" . $person ['city'] . "</td>"
. "<td>" . $person ['state'] . "</td>"
. "<td>" . $person ['job'] . "</td>"
. "</tr>";
}
echo "</table>";