implode()
把數組轉化成字符串;
基礎語法:
string implode(str $connect ,array $array);
string - 返回的字符串;
connect - 連接符;
array - 被操作的數組;
實例:
$a_1 = ['this','is','a','dog','!'];
print_r(' ',$a_1);
#output : this is a dog !
相關函數:
implode()
把數組轉化成字符串;
基礎語法:
string implode(str $connect ,array $array);
string - 返回的字符串;
connect - 連接符;
array - 被操作的數組;
實例:
$a_1 = ['this','is','a','dog','!'];
print_r(' ',$a_1);
#output : this is a dog !
相關函數: