join()方法:php
join(separator,array),separator-數組元素之間放置的內容;array-數組;數組
代碼示例:spa
<?php $arr = array('orange','blue','green','black','white'); echo join("、",$arr); ?>
輸出:code
orange、blue、green、black、white