Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Is it possible to have named index in an array ?

$
0
0

Hello everyone.

 

Today, I use a basic array like that :

tempArray[0] = 'value1';

tempArray[1] = 'value2';

tempArray[2] = 'value3';

 

etc...

 

i'd like to do something like that :

 

newArray['MyIndex1'] = 'value of my index 1';

newArray['MyIndex2'] = 'value of my index 2';

newArray['MyIndex3'] = 'value of my index 3';

 

When I do that, my newArray is always empty.

Is it possible to manage that and use named index ?


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>