Skip to content

Instantly share code, notes, and snippets.

@davidcoallier
Created May 3, 2011 06:47
Show Gist options
  • Save davidcoallier/952915 to your computer and use it in GitHub Desktop.
Save davidcoallier/952915 to your computer and use it in GitHub Desktop.
<?php
$users = array(
'f884624f' => 'Jonathan',
);
if (!isset($_GET['tag'])) {
echo '0:No';
die();
}
$received = $_GET['tag'];
if (array_key_exists($received, $users)) {
echo '1:Hi ' . $users[$received];
} else {
echo '0:NoUser';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment