PHP Code:
<?php
/*
spent the last year
rocky mountain way
couldnt get much higher
out to pasture
think its safe to say
time to open fire
*/
$arr = array( 1 => array( 1 => "spent", 2 => "the", 3 => "last", 4 => "year"),
2 => array( 1 => "rocky", 2 => "mountain", 3 => "way"),
3 => array( 1 => "couldnt", 2 => "get", 3 => "much", 4 => "higher"),
4 => array( 1 => "out", 2 => "to", 3 => "pasture"),
5 => array( 1 => "think", 2 => "its", 3 => "safe", 4 => "to", 5=> "say"),
6 => array( 1 => "time", 2 => "to", 3 => "open", 4 => "fire")
);
?>
<html>
<body>
<table>
<?PHP
/*$reccnt = 0;
for($cnt1 = 1; $cnt1 <= count($arr[1]); $cnt1++ ){
for($cnt2 = 1; $cnt2 <= count($arr[2]); $cnt2++){
for($cnt3 = 1; $cnt3 <= count($arr[3]); $cnt3++){
for($cnt4 = 1; $cnt4 <= count($arr[4]); $cnt4++){
for($cnt5 = 1; $cnt5 <= count($arr[5]); $cnt5++){
for($cnt6 = 1; $cnt6 <= count($arr[6]); $cnt6++){
echo "<TR>";
echo "<TD>";
echo ++$reccount;
echo "</TD>";
echo "<TD>";
echo $arr[1][$cnt1];
echo "</TD>";
echo "<TD>";
echo $arr[2][$cnt2];
echo "</TD>";
echo "<TD>";
echo $arr[3][$cnt3];
echo "</TD>";
echo "<TD>";
echo $arr[4][$cnt4];
echo "</TD>";
echo "<TD>";
echo $arr[5][$cnt5];
echo "</TD>";
echo "<TD>";
echo $arr[6][$cnt6];
echo "</TD>";
echo "</TR>";
}
}
}
}
}
} */
?>
</table>
<?PHP
print "<BR>";
print "TESTING";
$detail = array_fill(0, 2, "value");
foreach( $detail as $det) {
print "<BR>".$det;
}
print "/**********************************************************************/"."<BR>";
$mystring = "Iamthestring";
print $mystring."<BR>";
print substr($mystring, 0, 1).substr($mystring, strlen($mystring) - 6).'=Istring';
print '<BR>';
$month = "12";
print date("Y/m/d", mktime(0,0,0, $month - 1, 13, 2005)) . ' - ' . date("Y/m/d", mktime(0,0,0, $month, 13, 2020));
print '<BR>';
$strtoSplit = "1,2,3,4,5,data";
$arraydata = split(",", $strtoSplit );
var_dump( $arraydata);
?>
</body>
</html>