跳到主要內容
搜尋
搜尋此網誌
紅色死神
生活、技術與有趣事情的點點滴滴。
Home
About
Contact
Search
更多…
分享
取得連結
Facebook
Twitter
Pinterest
以電子郵件傳送
其他應用程式
標籤
php
張貼者:
紅色死神
12月 08, 2012
php將字串分隔為陣列- explode
view plain
copy to clipboard
print
?
$string
=
"aa,bb,cc,dd"
;
$output
=
explode
(
" "
,
$string
);
echo
$output
[0];
// aa
echo
$output
[1];
// bb
echo
$output
[2];
// cc
echo
$output
[3];
// dd
留言
熱門文章
張貼者:
紅色死神
8月 30, 2024
[紅色死神] 跨站同步登入狀態
張貼者:
紅色死神
1月 20, 2012
顏文字大蒐集
張貼者:
紅色死神
9月 25, 2024
Facebook 技術社團成員破 15000 人
張貼者:
紅色死神
9月 26, 2024
[紅色死神] Wingzero Project 及講師頁增加錨點連結
留言