I am new to codeigniter,And I am passing some array values like slno,age,etc
When i store It is store like this ..(End of file also i am getting one comma)

```
Sl No:1,2,3,
age :23,25,28,

```

Here is the code

```
$slno=implode(",",$this->input->post('slno'));

```

can you guys help me how do i store

```
 Slno: 1,2,3
age:23,25,28

```

I don't want comma in end of the string,