当我在我的变量$veraplicacao上使用var_dump时,我得到的结果如下:object(Illuminate\Support\Collection)#351 (1) { ["items":protected]=> array(1) { [0]=> object(stdClass)#357 (11) { ["id"]=> int(1008) ["created_at"]=> NULL ["updated_at"]=> NULL ["nomeempresa"]=> string(11) "Teste teste" ["vagaaplicada"]=> string(6) "Testes" ["statusaplicacao"]=> int(4) ["pais"]=> string(6) "Brasil" ["estado"]=> string(16) "Distrito Federal" ["cidade"]=> string(12) "Plano Piloto" ["textocompleto"]=> string(16) "Teste 123" ["deleted_at"]=> NULL } }}我怎么能只得到“诺米姆普雷萨”值?当我尝试时,我得到以下错误:$veraplicacao["nomeempresa"]Undefined index: nomeempresa当我尝试时,我得到以下错误:$veraplicacao->nomeempresa属性 [无名名]在此集合实例上不存在。当我尝试时,我得到以下错误:$veraplicacao->nomeempresa不能使用 stdClass 类型的对象作为数组
- 1 回答
- 0 关注
- 153 浏览
添加回答
举报
0/150
提交
取消
