Get data in php from jquery serialize array
I am new with php and I want to get form data in php from jQuery serialize array. In php I am not able to get this data in proper format. Here how I am passing this data from jquery
var form_data = jQuery(this).serializeArray(); form_data = JSON.stringify(form_data);
In php I have implemented
json_decode function but I am still getting this array in not useful format.
$data = json_decode(stripslashes($_POST['data']),true);
It is returning form data in this format
Array (  => Array ( [name] => fname [value] => MyFirstName )  => Array ( [name] => lname [value] => MyLastName )  => Array ( [name] => phone [value] => 324242 )  => Array ( [name] => institution_name [value] => institution )  => Array ( [name] => degree_name [value] => Graduated )
How I can get data properly from this array so that I can use this properly. There are more then 50 input fields in my form and I have few fields like degree_name so there can be more then one degree_name input fields so how I will be able to fetch data when I will have multiple input fields with the same name. I will appreciate your help.