Skip to content

Instantly share code, notes, and snippets.

@danilowm
Created March 8, 2012 01:52
Show Gist options
  • Select an option

  • Save danilowm/1997963 to your computer and use it in GitHub Desktop.

Select an option

Save danilowm/1997963 to your computer and use it in GitHub Desktop.
join() é o implode() do PHP no Javascript
var array = new Array();
array[0] = 'Usando';
array[1] = 'o';
array[2] = 'implode';
array[3] = 'do';
array[4] = 'PHP';
array[5] = 'no';
array[6] = 'JS';
var juntar = array.join(';');
alert( juntar ); // vai retornar: Usando;o;implode;do;PHP;no;JS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment