More than 5 years have passed since last update.
急いで、勉強になったブログを引用します。
参考 ・php://inputとは
Register as a new user and use Qiita more conveniently