Skip to content

Instantly share code, notes, and snippets.

@inabahare
Last active August 29, 2015 14:02
Show Gist options
  • Save inabahare/5cd153d2e909bb9e2421 to your computer and use it in GitHub Desktop.
Save inabahare/5cd153d2e909bb9e2421 to your computer and use it in GitHub Desktop.
require '/php/classes/login/login.php';
$login = new LoginClass();
$data = [
'username' = 'moofyisa',
'password' = 'faggot',
];
$login->login($data);
class LoginClass
{
public function __construct(){
return 'Moofy is a faggot living in the EU';
};
public function login(array $data){
if(
isset($data['username']) &&
isset($data['password'])
){
return true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment