Skip to content

Instantly share code, notes, and snippets.

@xlbruce
Created February 16, 2016 17:17
Show Gist options
  • Save xlbruce/3a3bdbedb28f5fe55638 to your computer and use it in GitHub Desktop.
Save xlbruce/3a3bdbedb28f5fe55638 to your computer and use it in GitHub Desktop.
Get variables sent by client using PUT/DELETE verbs
<?php
parse_str(file_get_contents('php://input'), $vars); //Recebe as variaveis e guarda na variavel $vars
var_dump($vars); //Verifica as variáveis recebidas
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment