php使用implode( ) 函数连接数组元素
php使用implode( ) 函数连接数组元素 [代码片段(9行)]
//string implode ( string separator, array pieces ) <? $oz = 'Lions and Tigers and Bears'; $oz_array = explode(' and ', $oz); print_r($oz_array); $exclams = implode('! ', $oz_array); print_r($exclams); ?>
- 上一篇:php替换字符串中所有url为链接
- 下一篇:php验证url地址是否正确
精彩图集
精彩文章