Its syntax is: string trim (string string) It will also remove the special characters "\n", "\r", "\t", "\v" and "\0". <? print ">".trim(" asdf ")."<"; ?>