Trim Functions
$TrailingSpaces = "Trailing Spaces ";
$Leadingspaces = " Leading spaces";
$TrailingAndLeadingSpaces = " Trailing and Leading Spaces ";
$TabString = $HTTP_USER_AGENT . " \n\n\n \t\t \r\r";
print("\"$TrailingSpaces\"" . "
");
print("\"$Leadingspaces\"" . "
");
print("\"$TrailingAndLeadingSpaces\"" . "
");
print("\"$TabString\"" . "
");
$TrailingSpaces = chop($TrailingSpaces);
$Leadingspaces = ltrim($Leadingspaces);
$TrailingAndLeadingSpaces = trim($TrailingAndLeadingSpaces);
$TabString = trim($TabString);
print("
");
print("\"$TrailingSpaces\"" . "
");
print("\"$Leadingspaces\"" . "
");
print("\"$TrailingAndLeadingSpaces\"" . "
");
print("\"$TabString\"" . "
");
?>