Created
November 22, 2018 12:24
-
-
Save asigatchov/9a112469c8e0439f39e1b9cb7e98bc46 to your computer and use it in GitHub Desktop.
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 | |
$data = json_decode(file_get_contents('php://input'), true); | |
$data['first_name'] .= " " . md5($data['first_name']); | |
$data['last_name'] .= " " . md5($data['last_name']); | |
$data['say'] = 'PHP is Good'; | |
$data['current_time'] = date("Y-m-d H:m:s z"); | |
echo json_encode($data, JSON_UNESCAPED_UNICODE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment