If have this array:
$a = array("one", "two", "three");
I want to transform this into this string:
$s = "one, two, three";
E.g.:
$s = paste($a, sep=", ");
Use implode:
$s = implode(', ',$a);
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加