Contents [hide]
Output
a,b,c
Code examples
JavaScript
1 2 | array = [ 'a' , 'b' , 'c' ]; console.log(array.join( "," )); |
Perl
1 2 | my @array = ( "a" , "b" , "c" ); print join ( "," , @array ). "\n" ; |
PHP
1 2 3 | <?php $array = [ "a" , "b" , "c" ]; print (implode( "," , $array ). "\n" ); |
Python
1 2 | array = [ "a" , "b" , "c" ] print ( "," .join(array)) |
Ruby
1 2 | array = [ 'a' , 'b' , 'c' ] print(array.join( ',' ) + "\n" ) |
Author: Hajime Kurita, CEO/CTO of 1st Class, inc. Search Engineer & Web master
Certificate: AWS SOL Architect, Professional Scrum Master I, Class I IT Engineer(JP national certificate), TOEIC900+, Graduate of Tokyo university
Please follow My English twitter account for updates
IT Relatd service: VPS Ranking