chop()

Its an alias of rtrim() and it removes white spaces from the right end of a string

Example

<?php
echo chop(“phpcode  “);
?>

Output

phpcode

Share