一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

php is_array数组 Notice: Array to string conversion

时间:2014-06-23 编辑:简简单单 来源:一聚教程网

例子

$str = preg_match_all('/(

    ).*?(<\/UL>)/is', $str,$array);

    if(is_array($$arrayList[0]) )
    {
    }

    结果发现

    Notice: Array to string conversion in E:\get_data.php on line 45

    Notice: Undefined variable: Array in E:\get_data.php on line 45

    仔细检查一下发现

    is_array($$arrayList[0]多了一个美元了,如果说是RMB就好了

    我们修改一下

    if(is_array($arrayList[0]) )
    {
    }

    执行就没有问题了哦。

热门栏目