i have a multi valued textarea with auto suggestions. Now, i am receiving a string with somehow array structured string in my controller. I want to insert this in my database with one by one. Something like, i want them to inserted in my database as one by one. I am having a problem how can i parse this type from my controller.

Here is my controller :

```
public function finish_checkup($patient_id,$queue_id,$checkup_id,$clinic_id) {
    $diagnosis = $this->input->post('tdiagnosis');
    var_dump($diagnosis);    
} 

```

now when i `var_dump($diagnosis);` the value of this is : 

```
string(30) "["Cobol","JavaScript","Scala"]"

```

now what i want is to parse this string one by one, so that i can insert this values to my database something like:

```
checkup_id   language
1             cobol
2             javascript
3             scala

```