I am using foreach to get the values of the array in a table but am having difficulty getting the values to show in one line. Please Help.
I've currently got this piece of code but using it only shows the values of [value] underneath eachother:
<?php
foreach($row as $level => $priv){
foreach($priv as $command => $list){
foreach($list as $trigger => $value){
echo $value;}}}?>
The Array
[rows] => SimpleXMLElement Object
(
[row] => Array
(
[0] => SimpleXMLElement Object
(
[rownum] => 1
[values] => SimpleXMLElement Object
(
[value] => Array
(
[0] => 12345567
[1] => BC INC
[2] => 9756208
[3] => OTC
[4] => Marketers
[5] => OTC Pink
[6] => BDCG
[7] => 2390
[8] => Misc Products
)
)
)
[1] => SimpleXMLElement Object
(
[rownum] => 2
[values] => SimpleXMLElement Object
(
[value] => Array
(
[0] => 12345678
[1] => MEDIA, INC.
[2] => 123456
[3] => OTC
[4] => OT
[5] => OTC
[6] => BDDE
[7] => 876856
[8] => Biz Services
)
)
)