Last active
November 15, 2022 11:20
-
-
Save attilabacso/4f21346466499d536c872abd232b3917 to your computer and use it in GitHub Desktop.
This file contains 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 | |
$json = file_get_contents("php://input"); | |
$data = (array) json_decode($json, true); | |
if ( array_key_exists('name', $data) ) { | |
$name = (string) $data['name']; | |
$value = (int) $data['value']; | |
$text = (string) $data['text']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment