Skip to content

Instantly share code, notes, and snippets.

@rasoulvatanparast
Created July 2, 2019 15:40
Show Gist options
  • Save rasoulvatanparast/95eb23c27d286599df05369fc12ff6c4 to your computer and use it in GitHub Desktop.
Save rasoulvatanparast/95eb23c27d286599df05369fc12ff6c4 to your computer and use it in GitHub Desktop.
<?php
function login($username, $pass){
if($pass == 1234 && $username == "rasoul"){
echo "login successful";
}else{
echo "invalid username or password";
}
}
login("rasoul1", 1234);
echo("<br />");
login("rasoul", 1234);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment