Skip to content

Instantly share code, notes, and snippets.

@SeanPlusPlus
Created June 11, 2011 01:40
Show Gist options
  • Save SeanPlusPlus/1020147 to your computer and use it in GitHub Desktop.
Save SeanPlusPlus/1020147 to your computer and use it in GitHub Desktop.
PHP restful foo
# URL: http://mysite/?project=foo&category=bar&task=yo
<html>
<body>
<?php
foreach ($_GET as $key => $value) {
echo "key = $key :: value = $value";
echo "<br/>";
}
?>
</body>
</html>
~
# PRINTS OUT:
# key = project :: value = foo
# key = category :: value = bar
# key = task :: value = yo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment