Created
June 11, 2011 01:40
-
-
Save SeanPlusPlus/1020147 to your computer and use it in GitHub Desktop.
PHP restful foo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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