<HTML>
<HEAD>
<TITLE>Figure 14-6</TITLE>
</HEAD>
<BODY>
<?
/*
** get an array from getdate
*/
$today = getdate();
/*
** Sort the array, keeping indices
*/
//arsort($today);
/*
** Print array in alphabetical order
*/
for($value = reset($today); $value; $value = next($today))
{
print(key($today));
print(" is ");
print($value);
print("<BR>\n");
}
?>
</BODY>
</HTML>
<HEAD>
<TITLE>Figure 14-6</TITLE>
</HEAD>
<BODY>
<?
/*
** get an array from getdate
*/
$today = getdate();
/*
** Sort the array, keeping indices
*/
//arsort($today);
/*
** Print array in alphabetical order
*/
for($value = reset($today); $value; $value = next($today))
{
print(key($today));
print(" is ");
print($value);
print("<BR>\n");
}
?>
</BODY>
</HTML>