php right trim words code example
Example 1: how to trim text php
$text = " hello world ";
$text = trim($text);
=> "hello world"
Example 2: trim | from right in php
$DATA=trim("abc|1|test|","|");
$text = " hello world ";
$text = trim($text);
=> "hello world"
$DATA=trim("abc|1|test|","|");