How to compare the past string array? (question update)

because every user will have one or more attribute
structures like this:

clipboard.png

so if I do this

<? foreach ($data->{"attributes"} as $value) {
   echo $value;
}?>

can list every id
now the problem is that
this array has several different characteristics (although id is similar)
Let"s call him a skill tag and a life tag.
he will all be in the same array
, but when I want to check the skill tag
, I can"t tell which one is the life tag
, so when I want to change it, I may have to give it to him. In this way, the standard of life will disappear.
how do I start this paragraph first?
regardless of whether the user only modifies the skill tag or the life tag
I can upload the "modified" id of the id+ that uses "unmodified" and then bring it back to the same array?.

Mar.14,2021

extract key as an array from $dataSkill in advance, and then only do in_array judgment, without inner foreach

Menu