Hi,
Substr or substr_replace or something else to replace the last ending space in each item?
$str is generated by ($txt=explode "\n", $list), but have ending space in each item like 'author ', but I hope it is like 'author'.
$sub = substr($str, 0, -1) is not working.
thanks for your input,