Chop

(PHP3 , PHP4 )

Chop -- Remove trailing whitespace

Description

string chop (string str)

Returns the argument string without trailing whitespace, including newlines.

Example 1. Chop() example


$trimmed = chop ($line);
      

See also trim().