[ create a new paste ] login | about

Link: http://codepad.org/pzNo5vsg    [ raw code | output | fork ]

PHP, pasted on May 28:
<style type="text/css">
<!--
td { white-space: pre; }
//-->
</style>
<table border="1" style="border-collapse: collapse; float: left;" cellpadding="6">
<tr>
<?php
for ($i = 0; $i < 5; $i++)
{
	echo '<td>';
	for ($j = 1; $j <= 26; $j++)
	{
		echo $i . chr(64 + $j) . PHP_EOL;
	}
	echo '</td>';
}
?>
</tr>
</table>

<table border="1" style="border-collapse: collapse; float: left; margin-left: 30px" cellpadding="6">
<?php
for ($j = 1; $j <= 26; $j++)
{
	echo '<tr>';
	for ($i = 0; $i < 5; $i++)
	{
		echo '<td>' . $i . chr(64 + $j) . '</td>';
	}
	echo '</tr>' . PHP_EOL;
}
?>
</table>


Output:
<style type="text/css">
<!--
td { white-space: pre; }
//-->
</style>
<table border="1" style="border-collapse: collapse; float: left;" cellpadding="6">
<tr>
<td>0A
0B
0C
0D
0E
0F
0G
0H
0I
0J
0K
0L
0M
0N
0O
0P
0Q
0R
0S
0T
0U
0V
0W
0X
0Y
0Z
</td><td>1A
1B
1C
1D
1E
1F
1G
1H
1I
1J
1K
1L
1M
1N
1O
1P
1Q
1R
1S
1T
1U
1V
1W
1X
1Y
1Z
</td><td>2A
2B
2C
2D
2E
2F
2G
2H
2I
2J
2K
2L
2M
2N
2O
2P
2Q
2R
2S
2T
2U
2V
2W
2X
2Y
2Z
</td><td>3A
3B
3C
3D
3E
3F
3G
3H
3I
3J
3K
3L
3M
3N
3O
3P
3Q
3R
3S
3T
3U
3V
3W
3X
3Y
3Z
</td><td>4A
4B
4C
4D
4E
4F
4G
4H
4I
4J
4K
4L
4M
4N
4O
4P
4Q
4R
4S
4T
4U
4V
4W
4X
4Y
4Z
</td></tr>
</table>

<table border="1" style="border-collapse: collapse; float: left; margin-left: 30px" cellpadding="6">
<tr><td>0A</td><td>1A</td><td>2A</td><td>3A</td><td>4A</td></tr>
<tr><td>0B</td><td>1B</td><td>2B</td><td>3B</td><td>4B</td></tr>
<tr><td>0C</td><td>1C</td><td>2C</td><td>3C</td><td>4C</td></tr>
<tr><td>0D</td><td>1D</td><td>2D</td><td>3D</td><td>4D</td></tr>
<tr><td>0E</td><td>1E</td><td>2E</td><td>3E</td><td>4E</td></tr>
<tr><td>0F</td><td>1F</td><td>2F</td><td>3F</td><td>4F</td></tr>
<tr><td>0G</td><td>1G</td><td>2G</td><td>3G</td><td>4G</td></tr>
<tr><td>0H</td><td>1H</td><td>2H</td><td>3H</td><td>4H</td></tr>
<tr><td>0I</td><td>1I</td><td>2I</td><td>3I</td><td>4I</td></tr>
<tr><td>0J</td><td>1J</td><td>2J</td><td>3J</td><td>4J</td></tr>
<tr><td>0K</td><td>1K</td><td>2K</td><td>3K</td><td>4K</td></tr>
<tr><td>0L</td><td>1L</td><td>2L</td><td>3L</td><td>4L</td></tr>
<tr><td>0M</td><td>1M</td><td>2M</td><td>3M</td><td>4M</td></tr>
<tr><td>0N</td><td>1N</td><td>2N</td><td>3N</td><td>4N</td></tr>
<tr><td>0O</td><td>1O</td><td>2O</td><td>3O</td><td>4O</td></tr>
<tr><td>0P</td><td>1P</td><td>2P</td><td>3P</td><td>4P</td></tr>
<tr><td>0Q</td><td>1Q</td><td>2Q</td><td>3Q</td><td>4Q</td></tr>
<tr><td>0R</td><td>1R</td><td>2R</td><td>3R</td><td>4R</td></tr>
<tr><td>0S</td><td>1S</td><td>2S</td><td>3S</td><td>4S</td></tr>
<tr><td>0T</td><td>1T</td><td>2T</td><td>3T</td><td>4T</td></tr>
<tr><td>0U</td><td>1U</td><td>2U</td><td>3U</td><td>4U</td></tr>
<tr><td>0V</td><td>1V</td><td>2V</td><td>3V</td><td>4V</td></tr>
<tr><td>0W</td><td>1W</td><td>2W</td><td>3W</td><td>4W</td></tr>
<tr><td>0X</td><td>1X</td><td>2X</td><td>3X</td><td>4X</td></tr>
<tr><td>0Y</td><td>1Y</td><td>2Y</td><td>3Y</td><td>4Y</td></tr>
<tr><td>0Z</td><td>1Z</td><td>2Z</td><td>3Z</td><td>4Z</td></tr>
</table>


Create a new paste based on this one


Comments: