From 532ba2e885d00463d583e59220ef912b6edf1794 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Sat, 19 Feb 2000 02:06:35 +0000 Subject: [PATCH] fixed earlier malformed sgml, added a couple of function descriptions. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@19920 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/strings.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/functions/strings.xml b/functions/strings.xml index eda334f820..c6355d2b97 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1858,6 +1858,7 @@ echo str_repeat("-=", 10); $str = "Mary Had A Little Lamb and She LOVED It So"; $str = strtolower($str); print $str; # Prints mary had a little lamb and she loved it so + See also strtoupper and ucfirst. @@ -1883,6 +1884,13 @@ echo str_repeat("-=", 10); Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a (ä) will not be converted. + + <function>strtoupper</function> example + + $str = "Mary Had A Little Lamb and She LOVED It So"; + $str = strtoupper($str); + print $str; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO + See also strtolower and ucfirst. @@ -2165,7 +2173,8 @@ echo substr_replace( $var, '', 10, -1 ) . "<br>\n"; This function strips whitespace from the start and the end of a - string and returns the stripped string. + string and returns the stripped string. The whitespace characters it currently + strips are: "\n", "\r", "\t", "\v", "\0", and " ". See also chop and ltrim.