that'll prob. be: $lastdate = getmydate($fcontents[count($fcontents)-1]); remember that array indexes start at 0, hence the "-1" bit
-----Original Message----- From: Josh Edwards [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Where's the error? Fixed !!! It should be $line = $fcontents[$i]; not $line = $fcontents[i]; Would you know the syntax to get the the last date? ie $lastdate = getmydate($line[(count($line))]); echo "$lastdate"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php