Loading...

PHP–implode() 將陣列轉成字串

Temperature: 0 °C

Mark ChangMark Chang


使用implode將陣列轉換成字串;
$ar=array('a','b','c','d','e');
$output=implode(",",$ar);
print_r($output);

輸出結果:
a,b,c,d,e
https://innstory.com/story-PHP–implode_將陣列轉成字串-1605

Prev
 mysql_查詢數據資料是否有重複

Next
使用PHP取得目前網址方式 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

javascript change css class

javascript change css class

javascript 使用classList是一個方便的替代方法,可以將元素的類列表作...

PDO bindParam 和 bindValue 差別在哪裡?

PDO bindParam 和 bindValue 差別在哪裡?

首先 bindParam 是綁定變數、bindValue  是綁定值。 以下範例:...

PHP無法保存SESSION的問題

PHP無法保存SESSION的問題

一天,客戶反應系統後台無法登入。 而這問題是發生在客戶電腦更換了IP位置。 而我這邊也...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format