mirror of
https://github.com/php/doc-it.git
synced 2026-03-24 15:42:46 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@314704 c90b9560-bf6c-de11-be94-00142212c4b1
67 lines
2.0 KiB
XML
67 lines
2.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- EN-Revision: n/a Maintainer: darvina Status: ready -->
|
|
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
|
<refentry xml:id="function.ucfirst" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>ucfirst</refname>
|
|
<refpurpose>Converte in maiuscolo il primo carattere del testo</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descrizione</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>ucfirst</methodname>
|
|
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Restituisce un testo in cui il primo carattere di
|
|
<parameter>str</parameter> è maiuscolo, se si tratta di una carattere
|
|
alfabetico.
|
|
</para>
|
|
<para>
|
|
Attenzione che i 'caratteri alfabetici' sono determinati dalle impostazioni locali. Ad esempio
|
|
nelle impostazioni locali "C" di default, caratteri tipo
|
|
ä non saranno convertiti.
|
|
<example>
|
|
<title>Esempio di uso di <function>ucfirst</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$foo = 'hello world!';
|
|
$foo = ucfirst($foo); // Hello world!
|
|
|
|
$bar = 'HELLO WORLD!';
|
|
$bar = ucfirst($bar); // HELLO WORLD!
|
|
$bar = ucfirst(strtolower($bar)); // Hello world!
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Vedere anche <function>strtolower</function>, <function>strtoupper</function>
|
|
e <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:"~/.phpdoc/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
|
|
-->
|