Dear experties,
I have a problem to remove semicolon at last value, but not working. This script working if I change the ';' to comma ','.. What is the problem actually?
Please help me..
> if(isset($sw11))
$symp39=$sw11.";";
else
$symp39=NULL;
if(isset($sap_rel))
$symp40=$sap_rel."";
else
$symp40=NULL;
if(isset($subject))
$symp41=$subject.";";
else
$symp41=NULL;
if(isset($module))
$symp42=$module."";
else
$symp42=NULL;
$subcat = $symp39."".$symp40."".$symp41."".$symp42;
$sub = preg_replace('/,[^,]*;$/', '', $subcat);