PHP3 Manual
PrevNext

trim

trim -- Strip whitespace from the beginning and end of a string.

Description

string trim(string str);

This function strips whitespace from the start and the end of a string and returns the stripped string.

See also chop() and ltrim().


PrevHomeNext
ltrimUpucfirst