".substr($list[$z],0,4)." DOY ".substr($list[$z],4,3)." ".substr($list[$z],7,4)." | ".substr($list[$z],0,8)." |
Back to Index
\n"; $ndays = count($list)/4; print "AAR Pass ".floor(($key/4)+1)." of ".$ndays." in current month"; # print "".$prevfile.""; print " | ";
# print "(".($key+1)." of ".count ($list).") "; # print "".$file.""; print " | "; # print "".$nextfile.""; print " |
";
#print " ";
print " ";
print " | ";
print " ";
print " | |
";
print " ";
print " | ";
print " ";
print " |
Back to Index
\n"; } #print $URL."\n"; ################################################ /*********************************************************************** * Use * * $needle // The item you are looking for * $array // The array you are searching in * * // Return the key * $array_key = array_searcher($needle, $array); * echo "The array's key is : " . $array_key; ***********************************************************************/ function array_searcher($needle, $array) { // Make sure a valid array was passed if(!is_array($array)) { return "Not a valid array"; } // Loop through each part of the array foreach ($array as $key => $item) { // Inner loop foreach($item as $entity) { // Found a match, return the key if ($entity == $needle) { return $key; } } } } ######################################################## ?>