Skip to content
Advertisement

Convert array to implode value using ci

I have been getting value array and convert implode value comma separate ?

Model:

Controller:

Array value:

View json print value:

Result:

I need this value:

Advertisement

Answer

When there is only one field in the SELECT, an implode does nothing. You need to collect the data and then return the imploded data.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement