skip to Main Content

array_diff is working incorrectly on my arrays – PHP

$data3 = 'primary_mobile_number, amount, new, hs_analytics_source_data_3'; $data4 = 'amount_in_home_currency, days_to_close, deal_currency_code, hs_acv, hs_all_assigned_business_unit_ids, hs_all_collaborator_owner_ids, hs_all_deal_split_owner_ids, hs_analytics_latest_source, hs_analytics_latest_source_company, hs_analytics_latest_source_contact, hs_analytics_latest_source_data_1, hs_analytics_latest_source_data_1_company, hs_analytics_latest_source_data_1_contact, hs_analytics_latest_source_data_2, hs_analytics_latest_source_data_2_company, hs_analytics_latest_source_data_2_contact, hs_analytics_latest_source_timestamp, hs_analytics_latest_source_timestamp_company, hs_analytics_latest_source_timestamp_contact, hs_analytics_source, hs_analytics_source_data_1, hs_analytics_source_data_2, hs_arr, hs_campaign, hs_closed_amount, hs_closed_amount_in_home_currency, hs_created_by_user_id, hs_date_entered_appointmentscheduled, hs_date_entered_closedlost, hs_date_entered_closedwon, hs_date_entered_contractsent, hs_date_entered_decisionmakerboughtin,…

VIEW QUESTION

How to compare and manipulate json object

I need to compare and manipulate JSON objects. First object let data1 = { "id": "111", "entity_id": "222", "text_id": "333", "details": [{ "value": 1000, "comp_id": "444", "CompName": "driving" }] } Second object let data2 = [{ "id": "111", "text_id": "333",…

VIEW QUESTION
Back To Top
Search