laravel 报错htmlspecialchars() expects parameter 1 to be string, object given

翻译过来就是     期望参数1是字符串

  意思就是说变量为数组,应以数组的方式输出

  @foreach($xxx as $k=>$y)

    {{$k}}{{$y}}

  @endforeach

posted @ 2019-01-17 17:47  钧一  阅读(7971)  评论(0编辑  收藏  举报