<?php print preg_replace('/,$/', '', '12345,');
You have javascript disabled. You will not be able to edit any code.