From fa3874dcd93fec546608ba450abe50902f8de958 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Tue, 31 May 2005 21:10:49 +0000 Subject: [PATCH] WS for new doc style git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@187418 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/trim.xml | 162 +++++++++++++-------------- 1 file changed, 80 insertions(+), 82 deletions(-) diff --git a/reference/strings/functions/trim.xml b/reference/strings/functions/trim.xml index 21c42ad7bc..37daeb4a65 100644 --- a/reference/strings/functions/trim.xml +++ b/reference/strings/functions/trim.xml @@ -1,74 +1,72 @@ - + - - - trim - - Strip whitespace (or other characters) from the beginning and end of a string - - - - Description - - stringtrim - stringstr - stringcharlist - - - This function returns a string with whitespace stripped from the - beginning and end of str. - Without the second parameter, - trim will strip these characters: - - - - - " " (ASCII 32 - (0x20)), an ordinary space. - - - - - "\t" (ASCII 9 - (0x09)), a tab. - - - - - "\n" (ASCII 10 - (0x0A)), a new line (line feed). - - - - - "\r" (ASCII 13 - (0x0D)), a carriage return. - - - - - "\0" (ASCII 0 - (0x00)), the NUL-byte. - - - - - "\x0B" (ASCII 11 - (0x0B)), a vertical tab. - - - - - - You can also specify the characters you want to strip, by means - of the charlist parameter. - Simply list all characters that you want to be stripped. With - .. you can specify a range of characters. - - - Usage example of <function>trim</function> - + + + trim + Strip whitespace (or other characters) from the beginning and end of a string + + + Description + + stringtrim + stringstr + stringcharlist + + + This function returns a string with whitespace stripped from the + beginning and end of str. + Without the second parameter, + trim will strip these characters: + + + + + " " (ASCII 32 + (0x20)), an ordinary space. + + + + + "\t" (ASCII 9 + (0x09)), a tab. + + + + + "\n" (ASCII 10 + (0x0A)), a new line (line feed). + + + + + "\r" (ASCII 13 + (0x0D)), a carriage return. + + + + + "\0" (ASCII 0 + (0x00)), the NUL-byte. + + + + + "\x0B" (ASCII 11 + (0x0B)), a vertical tab. + + + + + + You can also specify the characters you want to strip, by means + of the charlist parameter. + Simply list all characters that you want to be stripped. With + .. you can specify a range of characters. + + + Usage example of <function>trim</function> + ]]> - - - - - The optional charlist parameter was - added in PHP 4.1.0 - - - - See also ltrim and rtrim. - - - + + + + + The optional charlist parameter was + added in PHP 4.1.0 + + + + See also ltrim and rtrim. + + +