【发布时间】:2016-12-27 04:01:56
【问题描述】:
function ult_img_single_init( $content = null, $data = '', $size = 'full' ){
$final = '';
if($content!='' && $content!='null|null') {
// Create an array
$mainStr = explode('|', $content);
$string = '';
$mainArr = array();
$temp_id = $mainStr[0];
$temp_url = (isset($mainStr[1])) ? $mainStr[1] : 'null';
所以,我在这一行得到了这个错误:-
$mainStr = explode('|', $content);
错误提示:-
警告:explode() 期望参数 2 是字符串
知道发生了什么并提供帮助吗?
【问题讨论】:
-
你的 $content 里有什么??
-
...以及如何使用该功能。
-
通过打印出来告诉我们
$content的值。 -
我在这里待得够久了,等下一班车吧。
-
@Anant 我会坐出租车。人们往往等公共汽车太久。