Let's say the string is "ram,shyam,seeta,geeta" (not an array just a text string)
I see that I can use these (strpos)
$findme = ',';
$pos = strpos($this1, $findme);
$pos2 = strripos($this1, $findme);
$showfirst = substr($this1, 0, $pos);
$showlast = substr($this1, $pos2+1, 9999 );