$str = "ABC\n"; $str = rtrim($str); if ($str == 'ABC') { print $str; }
$str = "ABC\n";$str = rtrim($str);if ($str == 'ABC') { print $str;}