Skip to content

Instantly share code, notes, and snippets.

@Deaner666
Created May 26, 2015 21:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Deaner666/a5fa7456077db7a17b01 to your computer and use it in GitHub Desktop.
Outputting a URL parameter in PHP
<?php
if ( isset($_GET['key']) ) {
echo $_GET['key'];
} else {
// Fallback behaviour here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment