how to declare dynamic variable name like $$var in php?
So, Iād recommend to use a namespace for that like this.
var myNamespace = {};
var myVar = "key";
myNamespace[myVar] = "some value";
1 Like
very thanks for your reply.