Some cleanup.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@27710 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Egon Schmid 2000-07-05 09:45:05 +00:00
parent 18294b3cf6
commit 5e47744128

View file

@ -13,7 +13,7 @@
<refentry id="function.addcslashes">
<refnamediv>
<refname>AddCSlashes</refname>
<refpurpose>Quote string with slashes in a C style.</refpurpose>
<refpurpose>Quote string with slashes in a C style</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -108,7 +108,7 @@ $escaped = addcslashes ($not_escaped, "\0..\37!@\177..\377");
<refentry id="function.chop">
<refnamediv>
<refname>Chop</refname>
<refpurpose>Remove trailing whitespace.</refpurpose>
<refpurpose>Remove trailing whitespace</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -137,7 +137,7 @@ $trimmed = chop ($line);
<refentry id="function.chr">
<refnamediv>
<refname>Chr</refname>
<refpurpose>Return a specific character.</refpurpose>
<refpurpose>Return a specific character</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -170,7 +170,7 @@ $str = sprintf ("The string ends in escape: %c", 27);
<refentry id="function.chunk-split">
<refnamediv>
<refname>chunk_split</refname>
<refpurpose>Split a string into smaller chunks.</refpurpose>
<refpurpose>Split a string into smaller chunks</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -217,7 +217,7 @@ $new_string = chunk_split (base64_encode($data));
<refnamediv>
<refname>convert_cyr_string</refname>
<refpurpose>
Convert from one Cyrillic character set to another.
Convert from one Cyrillic character set to another
</refpurpose>
</refnamediv>
<refsect1>
@ -276,7 +276,7 @@ $new_string = chunk_split (base64_encode($data));
<refnamediv>
<refname>count_chars</refname>
<refpurpose>
Return information abouts characters used in a string.
Return information abouts characters used in a string
</refpurpose>
</refnamediv>
<refsect1>
@ -340,7 +340,7 @@ $new_string = chunk_split (base64_encode($data));
<refentry id="function.crypt">
<refnamediv>
<refname>crypt</refname>
<refpurpose>DES-encrypt a string.</refpurpose>
<refpurpose>DES-encrypt a string</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -421,7 +421,7 @@ $new_string = chunk_split (base64_encode($data));
<refentry id="function.echo">
<refnamediv>
<refname>echo</refname>
<refpurpose>Output one or more strings.</refpurpose>
<refpurpose>Output one or more strings</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -481,7 +481,9 @@ echo "This spans\nmultiple lines. The newlines will be\noutput as well.";
<funcdef>array <function>explode</function></funcdef>
<paramdef>string <parameter>separator</parameter></paramdef>
<paramdef>string <parameter>string</parameter></paramdef>
<paramdef>int <parameter><optional>limit</optional></parameter></paramdef>
<paramdef>int
<parameter><optional>limit</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
<para>
@ -511,7 +513,7 @@ $pieces = explode (" ", $pizza);
<refentry id="function.flush">
<refnamediv>
<refname>flush</refname>
<refpurpose>Flush the output buffer.</refpurpose>
<refpurpose>Flush the output buffer</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -535,7 +537,7 @@ $pieces = explode (" ", $pizza);
<refpurpose>
Returns the translation table used by
<function>htmlspecialchars</function> and
<function>htmlentities</function>.
<function>htmlentities</function>
</refpurpose>
</refnamediv>
<refsect1>
@ -599,7 +601,7 @@ $original = strtr ($str, $trans);
<refname>get_meta_tags</refname>
<refpurpose>
Extracts all meta tag content attributes from a file and returns
an array.
an array
</refpurpose>
</refnamediv>
<refsect1>
@ -646,7 +648,7 @@ $original = strtr ($str, $trans);
<refnamediv>
<refname>htmlentities</refname>
<refpurpose>
Convert all applicable characters to HTML entities.
Convert all applicable characters to HTML entities
</refpurpose>
</refnamediv>
<refsect1>
@ -677,7 +679,7 @@ $original = strtr ($str, $trans);
<refnamediv>
<refname>htmlspecialchars</refname>
<refpurpose>
Convert special characters to HTML entities.
Convert special characters to HTML entities
</refpurpose>
</refnamediv>
<refsect1>
@ -771,7 +773,7 @@ $colon_separated = implode (":", $array);
<refentry id="function.join">
<refnamediv>
<refname>join</refname>
<refpurpose>Join array elements with a string.</refpurpose>
<refpurpose>Join array elements with a string</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -797,7 +799,7 @@ $colon_separated = implode (":", $array);
<refnamediv>
<refname>levenshtein</refname>
<refpurpose>
Calculate Levenshtein distance between two strings
Calculate Levenshtein distance between two strings
</refpurpose>
</refnamediv>
<refsect1>
@ -810,26 +812,25 @@ $colon_separated = implode (":", $array);
</funcprototype>
</funcsynopsis>
<para>
This function return the Levenshtein-Distance between the
two argument strings or -1, if one of the argument strings
is longer than the limit of 255 characters.
This function return the Levenshtein-Distance between the two
argument strings or -1, if one of the argument strings is longer
than the limit of 255 characters.
</para>
<para>
The Levenshtein distance is defined as the minimal number
of characters you have to replace, insert or delete to
transform <parameter>str1</parameter> into
<parameter>str2</parameter>.
The Levenshtein distance is defined as the minimal number of
characters you have to replace, insert or delete to transform
<parameter>str1</parameter> into <parameter>str2</parameter>.
The complexity of the algorithm is <literal>O(m*n)</literal>,
where <literal>n</literal> and <literal>m</literal> are the
length of <parameter>str1</parameter> and
length of <parameter>str1</parameter> and
<parameter>str2</parameter> (rather good when compared to
<function>similar_text</function>, which is O(max(n,m)**3),
but still expensive).
<function>similar_text</function>, which is O(max(n,m)**3), but
still expensive).
</para>
<para>
See also <function>soundex</function>,
<function>similar_text</function>
and <function>metaphone</function>.
See also <function>soundex</function>,
<function>similar_text</function> and
<function>metaphone</function>.
</para>
</refsect1>
</refentry>
@ -838,7 +839,7 @@ $colon_separated = implode (":", $array);
<refnamediv>
<refname>ltrim</refname>
<refpurpose>
Strip whitespace from the beginning of a string.
Strip whitespace from the beginning of a string
</refpurpose>
</refnamediv>
<refsect1>
@ -864,7 +865,7 @@ $colon_separated = implode (":", $array);
<refentry id="function.md5">
<refnamediv>
<refname>md5</refname>
<refpurpose>Calculate the md5 hash of a string.</refpurpose>
<refpurpose>Calculate the md5 hash of a string</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -885,7 +886,7 @@ $colon_separated = implode (":", $array);
<refentry id="function.metaphone">
<refnamediv>
<refname>Metaphone</refname>
<refpurpose>Calculate the metaphone key of a string.</refpurpose>
<refpurpose>Calculate the metaphone key of a string</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -922,7 +923,7 @@ $colon_separated = implode (":", $array);
<refentry id="function.nl2br">
<refnamediv>
<refname>nl2br</refname>
<refpurpose>Converts newlines to HTML line breaks.</refpurpose>
<refpurpose>Converts newlines to HTML line breaks</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -946,35 +947,33 @@ $colon_separated = implode (":", $array);
<refentry id="function.ob-start">
<refnamediv>
<refname>ob_start</refname>
<refpurpose>
Turn on output buffering
</refpurpose>
<refpurpose>Turn on output buffering</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>void <function>ob_start</function></funcdef>
<void/>
<void/>
</funcprototype>
</funcsynopsis>
<para>
This function will turn output buffering. While output buffering
is active there will be no rel output from the script, the output
is appended to an internal buffer instead.
This function will turn output buffering. While output buffering
is active there will be no rel output from the script, the output
is appended to an internal buffer instead.
</para>
<para>
The contents of this internal buffer may be copied into a string
variable using <function>ob_get_contents</function>. Real output
happens when <function>ob_end_flush</function> is called and
<function>ob_end_clean</function> will just silently discard the
buffer contents.
</para>
<para>
The contents of this internal buffer may be copied into a string
variable using <function>ob_get_contents</function>.
Real output happens when <function>ob_end_flush</function> is
called and <function>ob_end_clean</function> will just silently
discard the buffer contents.
</para>
<para>
See also <function>ob_get_contents</function>,
<function>ob_end_flush</function>,
<function>ob_end_clean</function>
and <function>ob_implicit_flush</function>
<function>ob_end_flush</function>,
<function>ob_end_clean</function> and
<function>ob_implicit_flush</function>
</para>
</refsect1>
</refentry>
@ -983,7 +982,7 @@ $colon_separated = implode (":", $array);
<refnamediv>
<refname>ob_get_contents</refname>
<refpurpose>
Return the contents of the output buffer
Return the contents of the output buffer
</refpurpose>
</refnamediv>
<refsect1>
@ -991,17 +990,17 @@ $colon_separated = implode (":", $array);
<funcsynopsis>
<funcprototype>
<funcdef>string <function>ob_get_contents</function></funcdef>
<void/>
<void/>
</funcprototype>
</funcsynopsis>
<para>
This will return the content of the output buffer
or FALSE, if output buffering isn't active.
This will return the content of the output buffer or FALSE, if
output buffering isn't active.
</para>
<para>
See also <function>ob_start</function>,
<function>ob_end_flush</function>,
and <function>ob_end_clean</function>.
<function>ob_end_flush</function>, and
<function>ob_end_clean</function>.
</para>
</refsect1>
</refentry>
@ -1010,7 +1009,7 @@ $colon_separated = implode (":", $array);
<refnamediv>
<refname>ob_end_flush</refname>
<refpurpose>
Flush (send) the output buffer and turn off output buffering
Flush (send) the output buffer and turn off output buffering
</refpurpose>
</refnamediv>
<refsect1>
@ -1018,30 +1017,30 @@ $colon_separated = implode (":", $array);
<funcsynopsis>
<funcprototype>
<funcdef>void <function>ob_end_flush</function></funcdef>
<void/>
<void/>
</funcprototype>
</funcsynopsis>
<para>
This function will send the contents of the output buffer
(if any) and turn output buffering off.
If you want to further process the buffers content you have
to call <function>ob_get_contents</function> before
<function>ob_end_flush</function> as the buffer contents
get discarded after output.
This function will send the contents of the output buffer (if
any) and turn output buffering off. If you want to further
process the buffers content you have to call
<function>ob_get_contents</function> before
<function>ob_end_flush</function> as the buffer contents get
discarded after output.
</para>
<para>
See also <function>ob_start</function>,
<function>ob_get_contents</function>,
and <function>ob_end_clean</function>.
<function>ob_get_contents</function>, and
<function>ob_end_clean</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.ob-end-clean">
<refnamediv>
<refname>ob_end_clean</refname>
<refname>ob_end_clean</refname>
<refpurpose>
Clean (erase) the output buffer and turn off output buffering
Clean (erase) the output buffer and turn off output buffering
</refpurpose>
</refnamediv>
<refsect1>
@ -1049,16 +1048,16 @@ $colon_separated = implode (":", $array);
<funcsynopsis>
<funcprototype>
<funcdef>void <function>ob_end_clean</function></funcdef>
<void/>
<void/>
</funcprototype>
</funcsynopsis>
<para>
This function discards the content of the output buffer and
This function discards the content of the output buffer and
turns off output buffering.
</para>
<para>
See also <function>ob_start</function>
and <function>ob_end_flush</function>.
See also <function>ob_start</function> and
<function>ob_end_flush</function>.
</para>
</refsect1>
</refentry>
@ -1067,32 +1066,35 @@ $colon_separated = implode (":", $array);
<refnamediv>
<refname>ob_implicit_flush</refname>
<refpurpose>
Turn implicit flush on/off
</refpurpose>
Turn implicit flush on/off
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>void <function>ob_implicit_flush</function></funcdef>
<paramdef>int <parameter><optional>flag</optional></parameter></paramdef>
</funcprototype>
<paramdef>int
<parameter><optional>flag</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>ob_implicit_flush</function> will turn implicit flushing on or off
(if no <parameter>flag</parameter> is given, it defaults to on).
Implicit flushing will result in a flush operation after every output call,
so that explicit calls to <function>flush</function> will no longer be needed.
<function>ob_implicit_flush</function> will turn implicit
flushing on or off (if no <parameter>flag</parameter> is given,
it defaults to on). Implicit flushing will result in a flush
operation after every output call, so that explicit calls to
<function>flush</function> will no longer be needed.
</para>
<para>
Turning implicit flushing on will disable output buffering, the
output buffers current output will be sent as if
<function>ob_end_flush</function> had been called.
</para>
<para>
Turning implicit flushing on will disable output buffering, the output buffers
current output will be sent as if <function>ob_end_flush</function> had been
called.
</para>
<para>
See also <function>flush</function>,
<function>ob_start</function>
and <function>ob_end_flush</function>.
<function>ob_start</function> and
<function>ob_end_flush</function>.
</para>
</refsect1>
</refentry>
@ -1100,7 +1102,7 @@ $colon_separated = implode (":", $array);
<refentry id="function.ord">
<refnamediv>
<refname>Ord</refname>
<refpurpose>Return ASCII value of character.</refpurpose>
<refpurpose>Return ASCII value of character</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -1132,7 +1134,7 @@ if (ord ($str) == 10) {
<refentry id="function.parse-str">
<refnamediv>
<refname>parse_str</refname>
<refpurpose>Parses the string into variables.</refpurpose>
<refpurpose>Parses the string into variables</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -1187,7 +1189,7 @@ echo $second[1]; /* prints "another" */
<refentry id="function.printf">
<refnamediv>
<refname>printf</refname>
<refpurpose>Output a formatted string.</refpurpose>
<refpurpose>Output a formatted string</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -1215,7 +1217,7 @@ echo $second[1]; /* prints "another" */
<refnamediv>
<refname>quoted_printable_decode</refname>
<refpurpose>
Convert a quoted-printable string to an 8 bit string.
Convert a quoted-printable string to an 8 bit string
</refpurpose>
</refnamediv>
<refsect1>
@ -1239,8 +1241,8 @@ echo $second[1]; /* prints "another" */
<refentry id="function.quotemeta">
<refnamediv>
<refname>QuoteMeta</refname>
<refpurpose>quote meta characters</refpurpose>
<refname>quotemeta</refname>
<refpurpose>Quote meta characters</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -1294,7 +1296,7 @@ echo $second[1]; /* prints "another" */
<refentry id="function.rawurlencode">
<refnamediv>
<refname>rawurlencode</refname>
<refpurpose>URL-encode according to RFC1738.</refpurpose>
<refpurpose>URL-encode according to RFC1738</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -1338,7 +1340,7 @@ echo '&lt;A HREF="http://x.com/department_list_script/',
<refentry id="function.setlocale">
<refnamediv>
<refname>setlocale</refname>
<refpurpose>Set locale information.</refpurpose>
<refpurpose>Set locale information</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -1411,7 +1413,7 @@ echo '&lt;A HREF="http://x.com/department_list_script/',
<refnamediv>
<refname>similar_text</refname>
<refpurpose>
Calculate the similarity between two strings.
Calculate the similarity between two strings
</refpurpose>
</refnamediv>
<refsect1>
@ -1635,7 +1637,7 @@ $formatted = sprintf ("%01.2f", $money);
<refnamediv>
<refname>strcasecmp</refname>
<refpurpose>
Binary safe case-insensitive string comparison.
Binary safe case-insensitive string comparison
</refpurpose>
</refnamediv>
<refsect1>
@ -1657,7 +1659,7 @@ $formatted = sprintf ("%01.2f", $money);
<programlisting role="php">
$var1 = "Hello";
$var2 = "hello";
if ( !strcasecmp($var1,$var2) ) {
if (!strcasecmp ($var1, $var2)) {
echo '$var1 is equal to $var2 in a case-insensitive string comparison';
}
</programlisting>
@ -1675,7 +1677,7 @@ if ( !strcasecmp($var1,$var2) ) {
<refnamediv>
<refname>strchr</refname>
<refpurpose>
Find the first occurrence of a character.
Find the first occurrence of a character
</refpurpose>
</refnamediv>
<refsect1>
@ -1729,7 +1731,7 @@ if ( !strcasecmp($var1,$var2) ) {
<refnamediv>
<refname>strcspn</refname>
<refpurpose>
Find length of initial segment not matching mask.
Find length of initial segment not matching mask
</refpurpose>
</refnamediv>
<refsect1>
@ -1789,8 +1791,10 @@ if ( !strcasecmp($var1,$var2) ) {
<refentry id="function.stripcslashes">
<refnamediv>
<refname>StripCSlashes</refname>
<refpurpose>un-quote string quoted with addcslashes</refpurpose>
<refname>stripcslashes</refname>
<refpurpose>
Un-quote string quoted with <function>addcslashes</function>
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -1818,8 +1822,10 @@ if ( !strcasecmp($var1,$var2) ) {
<refentry id="function.stripslashes">
<refnamediv>
<refname>StripSlashes</refname>
<refpurpose>Un-quote string quoted with addslashes</refpurpose>
<refname>stripslashes</refname>
<refpurpose>
Un-quote string quoted with <function>addslashes</function>
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -1844,7 +1850,7 @@ if ( !strcasecmp($var1,$var2) ) {
<refnamediv>
<refname>stristr</refname>
<refpurpose>
Case-insensitive <function>strstr</function>.
Case-insensitive <function>strstr</function>
</refpurpose>
</refnamediv>
<refsect1>
@ -1880,7 +1886,7 @@ if ( !strcasecmp($var1,$var2) ) {
<refentry id="function.strlen">
<refnamediv>
<refname>strlen</refname>
<refpurpose>Get string length.</refpurpose>
<refpurpose>Get string length</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -1900,7 +1906,7 @@ if ( !strcasecmp($var1,$var2) ) {
<refnamediv>
<refname>strpos</refname>
<refpurpose>
Find position of first occurrence of a string.
Find position of first occurrence of a string
</refpurpose>
</refnamediv>
<refsect1>
@ -1970,7 +1976,7 @@ if (is_string ($pos) && !$pos) {
<refnamediv>
<refname>strrchr</refname>
<refpurpose>
Find the last occurrence of a character in a string.
Find the last occurrence of a character in a string
</refpurpose>
</refnamediv>
<refsect1>
@ -2020,7 +2026,7 @@ $last = substr (strrchr ($text, 10), 1 );
<refentry id="function.str-repeat">
<refnamediv>
<refname>str_repeat</refname>
<refpurpose>Repeat a string.</refpurpose>
<refpurpose>Repeat a string</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -2056,7 +2062,7 @@ echo str_repeat ("-=", 10);
<refentry id="function.strrev">
<refnamediv>
<refname>strrev</refname>
<refpurpose>Reverse a string.</refpurpose>
<refpurpose>Reverse a string</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -2076,7 +2082,7 @@ echo str_repeat ("-=", 10);
<refnamediv>
<refname>strrpos</refname>
<refpurpose>
Find position of last occurrence of a char in a string.
Find position of last occurrence of a char in a string
</refpurpose>
</refnamediv>
<refsect1>
@ -2115,7 +2121,7 @@ echo str_repeat ("-=", 10);
<refnamediv>
<refname>strspn</refname>
<refpurpose>
Find length of initial segment matching mask.
Find length of initial segment matching mask
</refpurpose>
</refnamediv>
<refsect1>
@ -2151,7 +2157,7 @@ strspn ("42 is the answer, what is the question ...", "1234567890");
<refentry id="function.strstr">
<refnamediv>
<refname>strstr</refname>
<refpurpose>Find first occurrence of a string.</refpurpose>
<refpurpose>Find first occurrence of a string</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -2177,7 +2183,7 @@ strspn ("42 is the answer, what is the question ...", "1234567890");
<programlisting role="php">
$email = 'sterling@designmultimedia.com';
$domain = strstr ($email, '@');
print $domain; // prints designmultimedia.com
print $domain; // prints @designmultimedia.com
</programlisting>
</example>
</para>
@ -2244,7 +2250,7 @@ while ($tok) {
<refentry id="function.strtolower">
<refnamediv>
<refname>strtolower</refname>
<refpurpose>Make a string lowercase.</refpurpose>
<refpurpose>Make a string lowercase</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -2281,7 +2287,7 @@ print $str; # Prints mary had a little lamb and she loved it so
<refentry id="function.strtoupper">
<refnamediv>
<refname>strtoupper</refname>
<refpurpose>Make a string uppercase.</refpurpose>
<refpurpose>Make a string uppercase</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -2319,7 +2325,7 @@ print $str; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
<refnamediv>
<refname>str_replace</refname>
<refpurpose>
Replace all occurrences of needle in haystack with str.
Replace all occurrences of needle in haystack with str
</refpurpose>
</refnamediv>
<refsect1>
@ -2365,7 +2371,7 @@ $bodytag = str_replace ("%body%", "black", "&lt;body text=%body%>");
<refentry id="function.strtr">
<refnamediv>
<refname>strtr</refname>
<refpurpose>Translate certain characters.</refpurpose>
<refpurpose>Translate certain characters</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -2508,7 +2514,7 @@ $rest = substr ("abcdef", 1, -1); // returns "bcde"
<refentry id="function.substr-replace">
<refnamediv>
<refname>substr_replace</refname>
<refpurpose>Replace text within a portion of a string.</refpurpose>
<refpurpose>Replace text within a portion of a string</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -2591,7 +2597,7 @@ echo substr_replace ($var, '', 10, -1) . "&lt;br&gt;\n";
<refnamediv>
<refname>trim</refname>
<refpurpose>
Strip whitespace from the beginning and end of a string.
Strip whitespace from the beginning and end of a string
</refpurpose>
</refnamediv>
<refsect1>
@ -2618,9 +2624,7 @@ echo substr_replace ($var, '', 10, -1) . "&lt;br&gt;\n";
<refentry id="function.ucfirst">
<refnamediv>
<refname>ucfirst</refname>
<refpurpose>
Make a string's first character uppercase.
</refpurpose>
<refpurpose>Make a string's first character uppercase</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -2638,13 +2642,14 @@ echo substr_replace ($var, '', 10, -1) . "&lt;br&gt;\n";
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.
<example>
<title><function>ucfirst</function> example</title>
<programlisting role="php">
<example>
<title><function>Ucfirst</function> example</title>
<programlisting role="php">
$text = 'mary had a little lamb and she loved it so.';
$text = ucfirst($text); // $text is now Mary had a little lamb and she loved it so.
</programlisting>
</example>
$text = ucfirst ($text); // $text is now Mary had a little lamb
// and she loved it so.
</programlisting>
</example>
</para>
<para>
See also <function>strtoupper</function> and
@ -2671,13 +2676,14 @@ $text = ucfirst($text); // $text is now Mary had a little lamb and she loved it
<para>
Capitalizes the first character of each word in
<parameter>str</parameter> if that character is alphabetic.
<example>
<title><function>ucwords</function> example</title>
<programlisting role="php">
<example>
<title><function>ucwords</function> example</title>
<programlisting role="php">
$text = "mary had a little lamb and she loved it so.";
$text = ucwords($text); // $text is now: Mary Had A Little Lamb And She Loved It So.
</programlisting>
</example>
$text = ucwords($text); // $text is now: Mary Had A Little
// Lamb And She Loved It So.
</programlisting>
</example>
</para>
<para>
See also <function>strtoupper</function>,