trim | from right in php code example
Example 1: php rtrim
$colors=trim("blue,red,green,",",");//remove last , with rtrim
Example 2: trim | from right in php
$DATA=trim("abc|1|test|","|");
$colors=trim("blue,red,green,",",");//remove last , with rtrim
$DATA=trim("abc|1|test|","|");