Created
August 9, 2016 06:18
-
-
Save Echocage/052da5e3d1a20def8f52bae8ffa836dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function timeLookup($name) | |
{ | |
global $file; | |
$ptfile = fopen($file, 'r'); | |
while ($line = fgets($ptfile)) { | |
$line = trim($line); | |
$arr = str_getcsv($line); | |
if ($arr[0] == $name) { | |
echo $arr[1]; | |
return; | |
} | |
} | |
echo "Timestamp not found"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment