Table of numbers in a pattern PHP : Back again with a newbie question :D

Couple days ago, i made a post similar to this one: https://stackoverflow.com/questions/46197415/pattern-output-stuck

I continued my work, but went back to this exercise after.

I need 2 more patterns in a <b>table</b>. The last 2 tables, i did with <b>nested For-loops</b>, which worked excellent, but now i'm stuck again :S

what I need: 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 <br>
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2 1 <br>
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;3 2 1 <br>
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;4 3 2 1 <br>
> &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;5 4 3 2 1 <br>
> &nbsp;&nbsp;&nbsp;6 5 4 3 2 1

what i tried:

    <table>
			<b>Patroon III</b>
			<?php
				$rows = 6;
				for($row = 1; $row <= $rows; $row++){
					echo "<tr>";
					for($col = 6; $col >= $row; $col--){
						if($col <= $row){ 
							echo "<td class='td2'>" . $col . "</td>";
						}
						else {
							echo "<td class='td2'>" . " " . "</td>";
						}
					}
					echo "</tr>";
				}
			?>
	</table>


What I get: 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 <br>
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2 <br>
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;3 <br>
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;4 <br>
> &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;5 <br>
> &nbsp;&nbsp;&nbsp;6


and the second table i need:
> 1 2 3 4 5 6<br>
> &nbsp;&nbsp; 2 3 4 5 6<br>
> &nbsp; &nbsp; &nbsp; 3 4 5 6<br>
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 4 5 6<br>
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 6<br>
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 6

what i tried:

    <table>
		<b>Patroon IV</b>
		<?php
			$rows = 6;
			for($row = 1; $row <= $rows; $row++){
				echo "<tr>";
				for($col = 1; $col <= $row; $col++){
					if($col >= $row){ 
						echo "<td class='td2'>" . $col . "</td>";
					}
					else {
						echo "<td class='td2'>" . " " . "</td>";
					}
				}
				echo "</tr>";
			}
		?>
	</table>

what i get:
> 1<br>
> &nbsp;&nbsp; 2<br>
> &nbsp; &nbsp; &nbsp; 3<br>
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 4<br>
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5<br>
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 6


Any suggestions? I'm thinking about another nested for-loop, but i dont know where to start anymore. Not sure if the if-else statement is needed.