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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e88aa8-efa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e88aa8-efa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?