I'm going to separate elements of an array with ,
, but I have a Error is
array for string conversion
My PHP code:
// database $ sliders all $ $ _ = THIS- & gt; - & gt; Get_slider ($ shoe_ID); $ Data ['my_slider'] = array (); Forex Currency ($ all_slider $ as line) {array_push ($ data ['my_slider'], $ line-> photo); } // $ data usage ['my_slider'] $ filename_arr [] = $ data ['my_slider']; $ File_coma = implode (',', $ filename_arr); // Line error is about the last line
What's wrong? Thank you. Try removing brackets from filename_arr
.
// $ data usage ['my_slider'] $ filename_arr = $ data ['my_slider']; $ File_coma = implode (',', $ filename_arr);
No comments:
Post a Comment