title: how I convert Json array and object to label in php?
body: <p>how I convert the json string to label in php</p>
  <p>Example for Data from mysql:</p>
  <pre><code>[{&quot;slot&quot;:1,&quot;name&quot;:&quot;id_card&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;citizenid&quot;:&quot;JDS70650&quot;,&quot;birthdate&quot;:&quot;111111-11-11&quot;,&quot;nationality&quot;:&quot;Saudi&quot;,&quot;lastname&quot;:&quot;60&quot;,&quot;gender&quot;:0,&quot;firstname&quot;:&quot;Loading&quot;}},{&quot;slot&quot;:2,&quot;name&quot;:&quot;driver_license&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;lastname&quot;:&quot;60&quot;,&quot;firstname&quot;:&quot;Loading&quot;,&quot;birthdate&quot;:&quot;111111-11-11&quot;,&quot;type&quot;:&quot;A1-A2-A | AM-B | C1-C-CE&quot;}},{&quot;slot&quot;:3,&quot;name&quot;:&quot;weapon_pistol_mk2&quot;,&quot;type&quot;:&quot;weapon&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;ammo&quot;:0,&quot;serie&quot;:&quot;83Vin3pE957ZCXh&quot;,&quot;attachments&quot;:[{&quot;component&quot;:&quot;COMPONENT_PISTOL_MK2_CLIP_02&quot;,&quot;label&quot;:&quot;Extended&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_PI_FLSH_02&quot;,&quot;label&quot;:&quot;Flashlight&quot;}]}},{&quot;slot&quot;:4,&quot;name&quot;:&quot;electronickit&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:5,&quot;name&quot;:&quot;signalradar&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:6,&quot;name&quot;:&quot;phone&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:7,&quot;name&quot;:&quot;advancedrepairkit&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:8,&quot;name&quot;:&quot;rifle_ammo&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:9,&quot;name&quot;:&quot;weapon_carbinerifle&quot;,&quot;type&quot;:&quot;weapon&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;attachments&quot;:[{&quot;component&quot;:&quot;COMPONENT_AT_AR_FLSH&quot;,&quot;label&quot;:&quot;Flashlight&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_SCOPE_MEDIUM&quot;,&quot;label&quot;:&quot;3x Scope&quot;}],&quot;serie&quot;:&quot;02MiQ2Gs862DEup&quot;}},{&quot;slot&quot;:10,&quot;name&quot;:&quot;empy_contract&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:&quot;&quot;},{&quot;slot&quot;:11,&quot;name&quot;:&quot;pd_pistol_ammo&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:12,&quot;name&quot;:&quot;pd_rifle_ammo&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:13,&quot;name&quot;:&quot;adrenaline&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:14,&quot;name&quot;:&quot;ifak&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:15,&quot;name&quot;:&quot;pd_smg_ammo&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:16,&quot;name&quot;:&quot;parachute&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:17,&quot;name&quot;:&quot;snowball&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:3,&quot;info&quot;:&quot;&quot;},{&quot;slot&quot;:18,&quot;name&quot;:&quot;radio&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:19,&quot;name&quot;:&quot;empty_evidence_bag&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:20,&quot;name&quot;:&quot;taser_ammo&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:21,&quot;name&quot;:&quot;weapon_flashlight&quot;,&quot;type&quot;:&quot;weapon&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;serie&quot;:&quot;03ZkH3Ny206dsag&quot;}},{&quot;slot&quot;:22,&quot;name&quot;:&quot;weapon_nightstick&quot;,&quot;type&quot;:&quot;weapon&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;serie&quot;:&quot;61ari3aG530Euta&quot;}},{&quot;slot&quot;:23,&quot;name&quot;:&quot;handcuffs&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:24,&quot;name&quot;:&quot;binoculars&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:25,&quot;name&quot;:&quot;diving_gear&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:26,&quot;name&quot;:&quot;weapon_combatpdw&quot;,&quot;type&quot;:&quot;weapon&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;attachments&quot;:[{&quot;component&quot;:&quot;COMPONENT_COMBATPDW_CLIP_02&quot;,&quot;label&quot;:&quot;Extended&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_AR_FLSH&quot;,&quot;label&quot;:&quot;Flashlight&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_AR_AFGRIP&quot;,&quot;label&quot;:&quot;Grip&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_SCOPE_SMALL&quot;,&quot;label&quot;:&quot;Scope&quot;}],&quot;serie&quot;:&quot;99aQn7oe001edrg&quot;}},{&quot;slot&quot;:27,&quot;name&quot;:&quot;weapon_m4&quot;,&quot;type&quot;:&quot;weapon&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;attachments&quot;:[{&quot;component&quot;:&quot;COMPONENT_M4_CLIP_02&quot;,&quot;label&quot;:&quot;Extended&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_M4_FLSH&quot;,&quot;label&quot;:&quot;Flashlight&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_SCOPE_M4&quot;,&quot;label&quot;:&quot;Scope&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_M4_AFGRIP&quot;,&quot;label&quot;:&quot;Grip&quot;}],&quot;serie&quot;:&quot;53TQV8Zr243pEzy&quot;}},{&quot;slot&quot;:28,&quot;name&quot;:&quot;weapon_carbinerifle_mk2&quot;,&quot;type&quot;:&quot;weapon&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;attachments&quot;:[{&quot;component&quot;:&quot;COMPONENT_CARBINERIFLE_CLIP_02&quot;,&quot;label&quot;:&quot;Extended&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_AR_FLSH&quot;,&quot;label&quot;:&quot;Flashlight&quot;},{&quot;component&quot;:&quot;COMPONENT_AT_AR_AFGRIP&quot;,&quot;label&quot;:&quot;Grip&quot;}],&quot;serie&quot;:&quot;25bcq9eS227JQEG&quot;}},{&quot;slot&quot;:29,&quot;name&quot;:&quot;weapon_taser&quot;,&quot;type&quot;:&quot;weapon&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;serie&quot;:&quot;04KMX6tB447agpD&quot;}},{&quot;slot&quot;:30,&quot;name&quot;:&quot;weapon_fireextinguisher&quot;,&quot;type&quot;:&quot;weapon&quot;,&quot;amount&quot;:1,&quot;info&quot;:{&quot;serie&quot;:&quot;08jTs4oj108aJhr&quot;}},{&quot;slot&quot;:31,&quot;name&quot;:&quot;trojan_usb&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:[]},{&quot;slot&quot;:32,&quot;name&quot;:&quot;securitycase&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:2,&quot;info&quot;:&quot;&quot;},{&quot;slot&quot;:33,&quot;name&quot;:&quot;weed_white-widow_seed&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:4,&quot;info&quot;:&quot;&quot;},{&quot;slot&quot;:34,&quot;name&quot;:&quot;fitbit&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:&quot;&quot;},{&quot;slot&quot;:35,&quot;name&quot;:&quot;methbrick&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:7,&quot;info&quot;:&quot;&quot;},{&quot;slot&quot;:36,&quot;name&quot;:&quot;metalscrap&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:8,&quot;info&quot;:&quot;&quot;},{&quot;slot&quot;:37,&quot;name&quot;:&quot;copper&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:7,&quot;info&quot;:&quot;&quot;},{&quot;slot&quot;:38,&quot;name&quot;:&quot;frappuccino&quot;,&quot;type&quot;:&quot;item&quot;,&quot;amount&quot;:1,&quot;info&quot;:&quot;&quot;}]
  </code></pre>
  <p>I want like this:</p>
  <p>Name: id_card</p>
  <p>Slot: 1</p>
  <p>Amount: 1</p>
  <p>Info:</p>
  <p>citizenid: JDS70650</p>