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

修改php.ini更改允許上傳檔案的大小

修改php.ini更改允許上...

使用vi或vim開啟php.ini #vim /etc/php/apache/php.ini 找到以...

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 12288 bytes) in

Fatal error: A...

今天在客戶的網站系統上發現了一個問題。 在上傳檔案時發生了一個錯誤: Fatal error: Al...

點選檔案下載卻直接執行開啟

點選檔案下載卻直接執行開啟

遇到一個情況。 使用者開啟瀏覽器點選某個連結檔案時,不會執行下載而是直接開啟檔案。 原本如果只是圖片...

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