How to show json value in php page : someone please tell me how we can show this value on php file viea {echo json_encode($array);} ?
   

    var formData=new FormData();
    formData.append("fieldname","value");
    formData.append("image",$('[name="filename"]')[0].files[0]);
    $.ajax({
    url:"page.php",
    data:formData,
     type: 'POST',
    dataType:"JSON",
    cache: false,
    contentType: false,
    processData: false,
    success:function(data){ }
    });

