龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

php使用implode( ) 函数连接数组元素

时间:2014-06-24 02:00来源:网络整理 作者:网络 点击:
分享到:
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);
?>
精彩图集

赞助商链接