php入門–implode()の使い方

phpコード
<?php
$arr =array('New’,’Skill’,’Techincal’,’Change’,’Country);

echo implode(“", $arr)."<br>";
echo implode(“+", $arr)."<br>";
echo implode(“-“, $arr)."<br>";
echo implode(“X", $arr);
?>
実行結果
NewSkillTechincalChangeCountry
New+Skill+Techincal+Change+Country
New-Skill-Techincal-Change-Country
NewXSkillXTechincalXChangeXCountr

PHP

Posted by arkgame