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

javascript change css class

javascript cha...

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

使用 .htaccess 關閉緩存

使用 .htaccess 關...

使用緩存可以提高網站的性能。 可以在.htaccess 文件集標頭中的各種指令指示瀏覽器將文件保留較...

Android Fragment及Activity 中使用sharedpreferences

Android Fragme...

在Android下想要儲存執行資料的方式有好幾種,例如存在手機空間或者是資料庫空間。 這裡紀錄一下使...

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