All pastes #468369 Raw Edit

k4st

public text v1 · immutable
·published 2007-05-03 02:01 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>Multiplication Table</title>
</head>
<body>

<h1>Imported!</h1>

<table border="1">
	<?php for($i1=0; $i1<=10;$i1+=1): $scope->pushVar("x",$i1); ?>
		<tr>
			<?php for($i0=1; $i0<=10;$i0+=1): $scope->pushVar("y",$i0); ?>
			<td>
				<?php echo $scope->pullVar("x") * $scope->pullVar("y"); ?>
			</td>
			<?php endfor; $scope->popVar("y"); ?>
		</tr>
	<?php endfor; $scope->popVar("x"); ?>
</table>

<br />

<table>
	<tr>
		<th>Keys</th>
		<th>Values</th>
	</tr>
	<?php $a=$scope->pullVar("array");if(is_array($a)):foreach($a as $k2 => $v2): $scope->pushVar("val", $k2);$scope->pushVar("key",$v2); ?>
	<tr>
		<td><?php echo $scope->pullVar("key"); ?></td>
		<td><?php echo $scope->pullVar("val"); ?></td>
	</tr>	
	<?php endforeach; $scope->popVar("key"); $scope->popVar("val");endif; ?>
</table>

</body>
</html>

$buffer"); ?>