mirror of
https://github.com/php/doc-de.git
synced 2026-03-29 18:52:13 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@196474 c90b9560-bf6c-de11-be94-00142212c4b1
71 lines
2.1 KiB
XML
71 lines
2.1 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- EN-Revision: 1.3 Maintainer: sammywg Status: working -->
|
|
<!-- splitted from ./de/functions/strings.xml, last change in rev 1.2 -->
|
|
<refentry id="function.ucfirst">
|
|
<refnamediv>
|
|
<refname>ucfirst</refname>
|
|
<refpurpose>
|
|
Verwandelt das erste Zeichen eines Strings in einen Großbuchstaben
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Beschreibung</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>ucfirst</methodname>
|
|
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Wandelt das erste Zeichen von <parameter>str</parameter> in einen
|
|
Großbuchstaben um, wenn es ein Zeichen des Alphabets ist, und gibt den
|
|
veränderten String zurück.
|
|
</para>
|
|
<para>
|
|
Beachten Sie, dass die Zeichen des Alphabets abhängig sind vom
|
|
Wert des gesetzten locale erkannt werden. Ist der Voreinstellung "C"
|
|
werden Sonderzeichen wie die deutschen Umlaute (ä etc.) nicht erkannt
|
|
und daher nicht umgewandelt.
|
|
<example>
|
|
<title><function>ucfirst</function>-Beispiel</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$foo = 'hallo welt!';
|
|
$foo = ucfirst($foo); // Hallo welt!
|
|
|
|
$bar = 'HALLO WELT!';
|
|
$bar = ucfirst($bar); // HALLO WELT!
|
|
$bar = ucfirst(strtolower($bar)); // Hallo welt!
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Siehe auch <function>strtolower</function>, <function>strtoupper</function>
|
|
und <function>ucwords</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|