Delete last comma from hidden field value

Last comma from hidden field value dissapear, because of split or explode functions in backend scripts.