How to convert into an array of string into Key/Value format?

Certified Associate Developer

Hello All,

 

Can someone please tell how we can make Key/Value from an array of string? I have an array lets say "arr1" containing the below value

 

arr1[1] Name:XYZ

arr2[2] Age:23, etc

 

Here Name and age is not declared as a variable, They act as string only. I want to make Name and Age as variables with respect to their stored values as "XYZ" and "23". So that I can easily call the values by calling Name or Age.

  Discussion posts and replies are publicly visible