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. The whitespace
characters it currently strips are: "\n", "\r", "\t", "\v", "\0",
and a plain space.
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.