lucianovalenca
10/30/2015 - 7:33 PM

Json

// Convert string to Json kepping UTF8 characters
json_encode($tring, JSON_UNESCAPED_UNICODE);

// Receive posted json
$input_data = json_decode(trim(file_get_contents('php://input')), true);