PHP chop() May 21, 2012 Pramod T P Its an alias of rtrim() and it removes white spaces from the right end of a string Example <?php echo chop(“phpcode “); ?> Output phpcode