Salvar dados de postagem para arquivar PHP

file_put_contents('test.txt', file_get_contents('php://input'));
ShubhamSakharkar