How to receive post data from mobile aplication in php?

In php, to receive data post from mobile application we use this code below:

$data=file_get_contents("php://input"); //receive data and set it to data varible
$array_data=json_decode($data); //convert data from json type to array type

Nosomovo

Chia sẻ lên
WEB5k - Thiết kế website giá rẻ chuẩn SEO