开发者

array inside array in codeigniter

开发者 https://www.devze.com 2023-03-12 12:52 出处:网络
I am trying to put the integer value of $QQ array into presenter array, no luck please help. $QQ = $this->MAudio->getAllAudio();

I am trying to put the integer value of $QQ array into presenter array, no luck please help.

$QQ = $this->MAudio->getAllAudio();

$presenter = $this开发者_如何转开发->Profile_model->getProfile($QQ['a_presenter_id']);

$data['name'] = $presenter['name'];


I think issue is with $this->MAudio->getAllAudio(); I think u have return Object now u got to convert that object into value by calling row() or row_array() or result() or result_array()

Try this code

$QQ = $this->MAudio->getAllAudio()->row_array();

$presenter = $this->Profile_model->getProfile($QQ['a_presenter_id']);

$data['name'] = $presenter['name'];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号