#PHPでimplodeのようなことが出来ないか?
implode
$arr[0] = "A";
$arr[1] = "B";
$arr[2] = "C";
echo( implode(",", $arr) ); // -> A,B,C
↓↓↓
Join
import "strings"
strings.Join(arr, ",")
fmt.Println(arr) // -> A,B,C
Go to list of users who liked
More than 5 years have passed since last update.
#PHPでimplodeのようなことが出来ないか?
$arr[0] = "A";
$arr[1] = "B";
$arr[2] = "C";
echo( implode(",", $arr) ); // -> A,B,C
↓↓↓
import "strings"
strings.Join(arr, ",")
fmt.Println(arr) // -> A,B,C
Register as a new user and use Qiita more conveniently
Go to list of users who liked