Jump to content

how to print this one (SEE HERE)??


rajmohan

Recommended Posts

one such simple method:
[code]
<?php
$one = "a,b,c,d,e";
$two= "aa,bb,cc,dd,ee";

$aOne = explode(',', $one);
$aTwo = explode(',', $two);
$iNumOne = count($aOne);


echo "<table>
<tr><td>one</td><td>two</td></tr>";

for($x = 0; $x < $iNumOne; $x++)
{
echo "<tr><td>" . $aOne[$x] . "</td><td>" . $aTwo[$x] . "</td></tr>";
}

echo "</table>";

?>[/code]
or somethink like this a diffrent way but formated diffrent.

[code]
<?php

echo"<table border='4'><tr><td>";

$a=array('a','b','c','d','e','f','g');

$b=array('aa','bb','cc','dd','ee','ff','gg');

$c=array_merge($a, $b);

$x=implode(" " , $c);

$results=wordwrap($x,2,"<br>",1);

echo $results;

echo"</table></tr><td>";
?>

[/code]

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.