$print=preg_replace('/^([^,]*).*$/', '$1', $print);
preg_replace('/^([^,]*).*$/', '$1', $print); substr($string, 0, strrpos($string.",", ","));