Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how contvert array to string like implode in jquery

var value = { "aaa": "111", "bbb": "222", "ccc": "333" };
var blkstr = [];
$.each(value, function(idx2,val2) {                    
  var str = idx2 + ":" + val2;
  blkstr.push(str);
});
console.log(blkstr.join(", "));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #contvert #array #string #implode #jquery
ADD COMMENT
Topic
Name
8+6 =