Author Topic: PHP in a nutshell  (Read 1402 times)

echo $_POST['sanity'];

Notice: Undefined index: sanity in index.php on line 1

lol epic coder meme dude XD

Haha What Is The Joke? Haha

Is this supposed to be a bad joke? Because this makes perfect sense to me?
You'll want to throw in a check to make sure that key exists, instead of just assuming it does and echoing it


if(isset($_POST['sanity']))
    echo $_POST['sanity'];
« Last Edit: August 10, 2017, 11:02:41 AM by Headcrab Zombie »

there is no check because the error is unfortunately the punchline

my supervisor has a coffee cup that says "php (pretty hot programmer)" and it makes me want a career change


I mean... to be fair, it wasn't really meant to become an internet standard

it was just some dude's side project that somehow got popular

there is no check because the error is unfortunately the punchline
Well it's not a very funny punchline :(

Is this supposed to be a bad joke? Because this makes perfect sense to me?
You'll want to throw in a check to make sure that key exists, instead of just assuming it does and echoing it


if(isset($_POST['sanity']))
    echo $_POST['sanity'];

NERD

Is this supposed to be a bad joke? Because this makes perfect sense to me?
You'll want to throw in a check to make sure that key exists, instead of just assuming it does and echoing it


if(isset($_POST['sanity']))
    echo $_POST['sanity'];


it was literally supposed to be a bad joke



this