Jump to content

array data to table


calmchess

Recommended Posts

thank you here is some cool code if anybody has ":" as a data dilimiter in their array row data.

 

<table id ="table0" border="1" cellspacing="0" cellpadding="3" width="350">

<?php

foreach ($arr_unser as $value) {$plode0=explode(":",$value);

echo'<tr><td width-"150">'.$plode0[0].'</td>

<td width-"150">'.$plode0[1].'</td></tr>';}

?>

 

</table>

Link to comment
https://forums.phpfreaks.com/topic/188578-array-data-to-table/#findComment-995602
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.