Skip to content

Instantly share code, notes, and snippets.

@jesse1981
Forked from till/put-request.php
Created May 7, 2013 23:44
Show Gist options
  • Save jesse1981/5537106 to your computer and use it in GitHub Desktop.
Save jesse1981/5537106 to your computer and use it in GitHub Desktop.
Example of reading PHP input data to array.
<?php
$_PUT = array();
parse_str(file_get_contents('php://input'), $_PUT);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment