Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$a = explode("\n", $input);
foreach ($a as $key => $line)
{
$a[$key] = explode(",", $line);
};
foreach ($a as $element)
{ $output .="
<tr>
<td>
{$element[0]}
</td>
<td>
{$element[1]}
</td>
<td>
{$element[2]}
</td>
<td>
{$element[3]}
</td>
<td>
{$element[4]}
</td>
<td>
{$element[5]}
</td>
</tr>";
};
return $output;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.