Loading...

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

Temperature: 0 °C

Mark ChangMark Chang
author_tools


PHP–implode() 將陣列轉成字串
使用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

如何將mysql table auto_increment重設

如何將mysql table...

photo555 資料表裡的資料加加減減,一不小心突然驚覺當初的欄位長度設定的不夠⊙⊙ 當然,你可以...

使用JavaScript的split函式完成字串切割

使用JavaScript的s...

使用JavaScript的split 函式可以用來切割字串。 根據設定的切割點執行切開的動作。 以下...

直接在PHP重新命名帶有前綴的session.name

直接在PHP重新命名帶有前綴...

直接在php檔案裡加入以下指令 sessionname(&#;SecurePHPSESSID&#;)...

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