[請益] 關於Warning:explode() expects parameter 2 to be string
各位好~
小弟是php初學者
在使用explode()函數時
//$text由外部傳入
if(isset($text)){
$text = explode(",",$text);
}else{
$text = "";
}
echo $text[0].$text[1];
遇到了下列的錯誤訊息
Warning:explode() expects parameter 2 to be string,.........
想請教這是那裡出問題
該怎麼解決呢?
感激不盡~謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.165.44.52
→
08/22 23:50, , 1F
08/22 23:50, 1F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章