Right, my bad (plus, there was a typo). Then we would go for : 
```
$post_categories_ = explode(
    ( strpos($fcontents[4], ';') !== false ? ',' : ';'), 
    str_replace(array("\n", '-'), '', $fcontents[4])
);
```