Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

TRIM in PHP

  1. <?php
  2.  
  3. $str = "Hello World!    ";
  4.  
  5. echo "Without rtrim: " . $str;
  6.  
  7. echo "<br />";
  8.  
  9. echo "With rtrim: " . rtrim($str);
  10.  
  11. ?>