Created
February 16, 2016 17:17
-
-
Save xlbruce/3a3bdbedb28f5fe55638 to your computer and use it in GitHub Desktop.
Get variables sent by client using PUT/DELETE verbs
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
<?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