> For the complete documentation index, see [llms.txt](https://learnsql.gitbook.io/lernmysql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learnsql.gitbook.io/lernmysql/su-dung-file_get_contents-php-input.md).

# Sử dụng file\_get\_contents(php\://input)

```
file_get_contents (php: // input) - lấy dữ liệu POST thô và bạn cần sử dụng dữ liệu này khi bạn viết API và cần đầu vào XML / JSON / ... không thể giải mã thành $ _POST bởi PHP
```

```
https://stackoverflow.com/questions/2731297/file-get-contentsphp-input-or-http-raw-post-data-which-one-is-better-to
```
