display array into html table

I am just curious on how I can display the contents of the array into a table. Thank You

$r_array = array();
switch($this->searchType){
case ‘Web’:
$obj = $this->request_data->d->results;
$ic = count($obj);
for($i=0;$i<$ic;$i++){
$r_array[$i] = array(‘Title’=>$obj[$i]->Title,‘Description’=>$obj[$i]->Description,‘Url’=>$obj[$i]->Url);

			}
	break;

You can use another for loop or a foreach loop.
[php]echo "


cell headers here "; foreach($r_array as $val) { echo ""; } echo "
$val
";[/php] That's the basic version, there's some good tutorials on how to do x amount of cells in a row out there.
Sponsor our Newsletter | Privacy Policy | Terms of Service