Hi Below is the array to which i want to apply array_unique.I want to filter only disname from below array.is there any solution ?
Array ( [0] => stdClass Object ( [visit_date] => 09-12-2020 [individual_card_id] => 6301_6719 [index_card_id] => 6301_439 [disease_type] => HTN [medicines] => [medid] => [medname] => [disid] => 3 [disname] => HTN ) [1] => stdClass Object ( [visit_date] => 02-12-2020 [individual_card_id] => 6301_6514 [index_card_id] => 6301_439 [disease_type] => HTN [medicines] => [medid] => [medname] => [disid] => 3 [disname] => HTN ) [2] => stdClass Object ( [visit_date] => 25-11-2020 [individual_card_id] => 6301_6282 [index_card_id] => 6301_439 [disease_type] => HTN [medicines] => [medid] => [medname] => [disid] => 3 [disname] => HTN ) [3] => stdClass Object ( [visit_date] => 27-11-2019 [individual_card_id] => 6301_2078 [index_card_id] => 6301_439 [disease_type] => Diabetes, HTN [medicines] => TAB. B C FORTE, AVACARD-5 TABLETS , GLINIL-M TAB [medid] => 56 [medname] => TAB. B C FORTE [disid] => 4 [disname] => Diabetes ) [4] => stdClass Object ( [visit_date] => 13-11-2019 [individual_card_id] => 6301_1249 [index_card_id] => 6301_439 [disease_type] => Diabetes [medicines] => GLINIL-M TAB [medid] => 40 [medname] => GLINIL-M TAB [disid] => 4 [disname] => Diabetes ))
source https://stackoverflow.com/questions/69332835/how-to-use-array-unique-for-multi-dimensional-array-in-php
Comments
Post a Comment