I have a php comma separated string 
`$string = (x,y,z)`

I have a column in mysql that has items (y,z)

I want to make an array of the items that are in the string but not in the table column...

```
 $cid = "'" . str_replace(",", "','", $cid) . "'";

    $query = mysql_query("SELECT save_key FROM saved WHERE save_key IN ($cid)");

    while ($result = mysql_fetch_assoc($query)){
        $array[] = $result['save_key'];
    }

    $cid_array = explode(',',$cid);

    $dif = array_diff($cid_array, $array);

    print_r($dif);

```

Output:

Array from query ( [0] => O45527 [1] => P97387 [2] => Y49437 )

Array from array\_dif ( [0] => 'P97387' [1] => 'O45527' [2] => 'Y49437' ) 
all items are the same right.. 

`print_r($dif);` should return array()