PHP trim only the exact string with example

In PHP, trim(), rtrim() and ltrim() functions with character_mask that trim characters in all the possibilities ways of prefix. $my_text = 'Reading RBI books on travel is a best policy.'; #rtrim($string,..

Read More » Posted on 2016-05-25 07:14:21

PHP Trim