作者Gio99 (return false;)
看板PHP
标题[请益] 关於Warning:explode() expects parameter 2 to be string
时间Sun Aug 22 22:49:55 2010
各位好~
小弟是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
1F:→ Jerr:在 explode() 前 call var_dump($text)吧 天知道传什麽进来 08/22 23:50