cvs: phpdoc /cs/functions strings.xml

From: Date: Mon, 05 Feb 2001 12:54:52 +0000
Subject: cvs: phpdoc /cs/functions strings.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969334178@lists.php.net to get a copy of this message
cynic Mon Feb 5 04:54:52 2001 EDT Modified files: /phpdoc/cs/functions strings.xml Log: continuing translation

Index: phpdoc/cs/functions/strings.xml diff -u phpdoc/cs/functions/strings.xml:1.4 phpdoc/cs/functions/strings.xml:1.5 --- phpdoc/cs/functions/strings.xml:1.4 Fri Jan 26 07:37:56 2001 +++ phpdoc/cs/functions/strings.xml Mon Feb 5 04:54:51 2001 @@ -19,7 +19,7 @@ <refentry id="function.addcslashes"> <refnamediv> - <refname>AddCSlashes</refname> + <refname>addcslashes</refname> <refpurpose>Opatøit øetìzec lomítky ve stylu jazyka C</refpurpose> </refnamediv> <refsect1> @@ -32,7 +32,7 @@ </funcprototype> </funcsynopsis> <para> - Vrátí øetìzec se zpìtnými lomítky pøed znaky, které jsou vypsány v argumentu + Vrací øetìzec se zpìtnými lomítky pøed znaky, které jsou vypsány v argumentu <parameter>charlist</parameter>. XXX Excapes <literal>\n</literal>, <literal>\r</literal> atd. podobnì jako v C, znaky s ASCII kódem ni¾¹ím ne¾ 32 a vy¹¹ím ne¾ 126 se pøevedou na @@ -40,7 +40,7 @@ rozsah, napø. "\0..\37", co¾ by XXX escapovao v¹echny znaky s ASCII kódem mezi 0 a 31. <example> - <title>Ukázka <function>Addcslashes</function></title> + <title>Ukázka <function>addcslashes</function></title> <programlisting role="php"> $escaped = addcslashes ($not_escaped, "\0..\37!@\177..\377"); </programlisting> @@ -51,7 +51,7 @@ </note> </para> <para> - Viz také <function>stripcslashes</function>, + Viz také: <function>stripcslashes</function>, <function>stripslashes</function>, <function>htmlspecialchars</function>, <function>htmlspecialchars</function> a @@ -62,7 +62,7 @@ <refentry id="function.addslashes"> <refnamediv> - <refname>AddSlashes</refname> + <refname>addslashes</refname> <refpurpose>Opatøit øetìzec lomítky</refpurpose> </refnamediv> <refsect1> @@ -74,13 +74,13 @@ </funcprototype> </funcsynopsis> <para> - Vrátí øetìzec se zpìtnými lomítky pøed znaky, které potøebují XXX be quoted + Vrací øetìzec se zpìtnými lomítky pøed znaky, které potøebují XXX be quoted v databázových dotazech apod. Tyto znaky jsou jednoduchá uvozovka (<literal>'</literal>), dvojitá uvozovka (<literal>"</literal>), zpìtné lomítko (<literal>\</literal>) a NUL (null byte). </para> <para> - Viz také <function>stripslashes</function>, + Viz také: <function>stripslashes</function>, <function>htmlspecialchars</function> a <function>quotemeta</function>. </para> @@ -101,7 +101,7 @@ </funcprototype> </funcsynopsis> <para> - Vrátí ASCII øetìec obsahující hexadecimální reprezentaci + Vrací ASCII øetìec obsahující hexadecimální reprezentaci <parameter>str</parameter>. Konverze probíhá po bytech, horní slabika první. </para> @@ -122,9 +122,9 @@ </funcprototype> </funcsynopsis> <para> - Vrátí pøedaný øetìzec bez netisknutelných znakù (vè. koncù øádku) na konci. + Vrací pøedaný øetìzec bez netisknutelných znakù (vè. koncù øádku) na konci. <example> - <title>Ukázka <function>Chop</function></title> + <title>Ukázka <function>chop</function></title> <programlisting role="php"> $trimmed = chop ($line); </programlisting> @@ -137,9 +137,9 @@ </para> </note> <para> - Viz také <function>trim</function>, + Viz také: <function>trim</function>, <function>ltrim</function>, - <function>rtrim</function>, a + <function>rtrim</function> a <function>chop</function>. </para> </refsect1> @@ -159,10 +159,10 @@ </funcprototype> </funcsynopsis> <para> - Vrátí øetìzec jednoho znaku obsahující znak specifikovaný argumentem + Vrací øetìzec jednoho znaku obsahující znak specifikovaný argumentem <parameter>ascii</parameter>. <example> - <title>Ukázka <function>Chr</function></title> + <title>Ukázka <function>chr</function></title> <programlisting role="php"> $str .= chr (27); /* pøidá escape znak na konec $str */ @@ -171,8 +171,8 @@ $str = sprintf ("Øetìzec konèi escape znakem: %c", 27); </programlisting> </example> - Tato funkce se doplòuje s funkcí <function>ord</function>. Viz také - <function>sprintf</function> s formátovacím øetìzcem + Tato funkce se doplòuje s funkcí <function>ord</function>. + Viz také: <function>sprintf</function> s formátovacím øetìzcem <literal>%c</literal>. </para> </refsect1> @@ -202,10 +202,10 @@ pøi uvádìní výstupu z <link linkend="function.base64-encode">base64_encode</link> do souladu se sémantikou RFC 2045. Ka¾dých <parameter>chunklen</parameter> (defaultnì 76) - znakù vlo¾í øetìzec <parameter>end</parameter> (defaultnì "\r\n"). Vrátí + znakù vlo¾í øetìzec <parameter>end</parameter> (defaultnì "\r\n"). Vrací nový øetìzec, pùvodní zùstává beze zmìny. <example> - <title>Ukázka <function>Chunk_split</function></title> + <title>Ukázka <function>chunk_split</function></title> <programlisting role="php"> # naformátuje $data s pou¾itím RFC 2045 sémantiky @@ -299,10 +299,10 @@ </funcprototype> </funcsynopsis> <para> - Spoèítá poèet výskytù v¹ech byte hodnot (0..255) v - <parameter>string</parameter> a vrátí je rùznými zpùsoby. - Voltelný argument <parameter>Mode</parameter> má výchozí hodnotu 0. - V závislosti na <parameter>mode</parameter> vrátí + Poèítá poèet výskytù v¹ech byte hodnot (0..255) v + <parameter>string</parameter> a vrací je rùznými zpùsoby. + Volitelný argument <parameter>Mode</parameter> má defaultní hodnotu 0. + V závislosti na <parameter>mode</parameter> vrací <function>count_chars</function> jednu z následujících mo¾ností: <itemizedlist> <listitem> @@ -313,23 +313,23 @@ </listitem> <listitem> <simpara> - 1 - stejné jako 0, ale vrátí pouze byte hodnoty s èetností vy¹¹í ne¾ + 1 - stejné jako 0, ale vrací pouze byte hodnoty s èetností vy¹¹í ne¾ nula. </simpara> </listitem> <listitem> <simpara> - 2 - stejné jako 0, ale vrátí pouze byte hodnoty s èetností rovnou nule. + 2 - stejné jako 0, ale vrací pouze byte hodnoty s èetností rovnou nule. </simpara> </listitem> <listitem> <simpara> - 3 - vrátí øetìzec obsahující v¹echny pou¾ité byte hodnoty. + 3 - vrací øetìzec obsahující v¹echny pou¾ité byte hodnoty. </simpara> </listitem> <listitem> <simpara> - 4 - vrátí øetìzec obsahující v¹echny nepou¾ité byte hodnoty. + 4 - vrací øetìzec obsahující v¹echny nepou¾ité byte hodnoty. </simpara> </listitem> </itemizedlist> @@ -361,7 +361,7 @@ pøená¹ených dat. </para> <para> - Viz také: <function>md5</function> + Viz také: <function>md5</function>. </para> </refsect1> </refentry> @@ -395,9 +395,9 @@ Nìkteré operaèní systémy podporují více typù ¹ifrování. Nìkdy se standardní DES ¹ifrování nahrazuje ¹ifrovacím algoritmem zalo¾eným na MD5. Typ ¹ifrování se zvolí podle XXX salt argumentu. Pøi instalaci PHP zjistí - schopnosti funkce crypt a ??? bude pøijímat XXX salt pro jiné typy + schopnosti funkce crypt a XXX bude pøijímat XXX salt pro jiné typy ¹ifrování. Pøi absenci XXX salt PHP defaultnì automaticky vygeneruje - standardní dvouznakový DES XXX salt, nicménì pokud je výchozím typem + standardní dvouznakový DES XXX salt, nicménì pokud je defaultním typem ¹ifrování na daném systému MD5, vygeneruje náhodný XXX salt kompatibilní s MD5. PHP vytváøí konstantu CRYPT_SALT_LENGTH, která vám øekne, jestli se na vá¹ systém hodí bì¾ný dvouznakový XXX salt nebo del¹í dvanáctiznakový MD5 @@ -406,7 +406,7 @@ <simpara> Pokud pou¾íváte poskytnutý XXX salt, mìli byste si být vìdomi toho, ¾e se generuje jednou. Pokud tuto funkci voláte rekurzivnì, mù¾e to mít úèinek na - XXX appearance, a, do urèité míry, bezpeènost. + vzhled, a, do urèité míry, bezpeènost. </simpara> <simpara> U standardního DES ¹ifrování <function>crypt</function> pøidá XXX salt jako @@ -473,7 +473,7 @@ <function>Echo</function> vlastnì není funkce (je to jazykový konstrukt), tak¾e u nìj nemusíte pou¾ívat závorky. <example> - <title>Ukázka <function>Echo</function></title> + <title>Ukázka <function>echo</function></title> <programlisting role="php"> echo "Hello World"; @@ -494,7 +494,7 @@ <simpara> Viz také: <function>print</function>, - <function>printf</function>, a + <function>printf</function> a <function>flush</function>. </simpara> </refsect1> @@ -518,7 +518,7 @@ </funcprototype> </funcsynopsis> <para> - Vrátí pole øetìzcù, z nich¾ ka¾dý je èástí argumentu + Vrací pole øetìzcù, z nich¾ ka¾dý je èástí argumentu <parameter>string</parameter> vzniklý jeho rozdìlením na hranicích tvoøených øetìzcem <parameter>delim</parameter>. Pokud je definován <parameter>limit</parameter>, vrácené pole bude obsahovat @@ -532,7 +532,7 @@ </note> <para> <example> - <title>Ukázka <function>Explode</function></title> + <title>Ukázka <function>explode</function></title> <programlisting role="php"> $pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode (" ", $pizza); @@ -548,7 +548,7 @@ </para> </note> <para> - Viz také <function>split</function> a + Viz také: <function>split</function> a <function>implode</function>. </para> </refsect1> @@ -575,7 +575,7 @@ </funcprototype> </funcsynopsis> <para> - <function>get_html_translation_table</function> vrátí pøekladovou tabulku, + <function>get_html_translation_table</function> vrací pøekladovou tabulku, která se internì pou¾ívá ve funkcích <function>htmlspecialchars</function> a <function>htmlentities</function>. Dvì nové konstanty (<parameter>HTML_ENTITIES</parameter>, @@ -583,11 +583,11 @@ tabulku chcete. A stejnì jako u funkcí <function>htmlspecialchars</function> a <function>htmlentities</function> mù¾ete pøípadnì urèit - <parameter>quote_style</parameter> se kterým pracujete. Výchozí hodnota je + <parameter>quote_style</parameter> se kterým pracujete. Defaultní hodnota je ENT_COMPAT mód. Viz popis tìchto módù u <function>htmlspecialchars</function>. <example> - <title>Ukázka Translation Table</title> + <title>Ukázka na pøekladovou tabulku</title> <programlisting role="php"> $trans = get_html_translation_table (HTML_ENTITIES); $str = "Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer"; @@ -618,8 +618,9 @@ </para> <para> Viz také: <function>htmlspecialchars</function>, - <function>htmlentities</function>, <function>strtr</function>, - a <function>array_flip</function>. + <function>htmlentities</function>, + <function>strtr</function> a + <function>array_flip</function>. </para> </refsect1> </refentry> @@ -658,14 +659,14 @@ </para> <para> Hodnota atributu name se ve vráceném poli stává klíèem, hodnota atributu - content hodnotou tohoto pole, takzè ho mù¾ete snadno projít nebo získat + content hodnotou tohoto pole, tak¾e ho mù¾ete snadno projít nebo získat jednotlivé hodnoty pomocí snandardních funkcí pro práci s poli. Zvlá¹tní znaky v hodnotì atributu name jsou nahrazeny znakem '_', zbytek se pøevede na malá písmena. </para> <para> Pokud je <parameter>use_include_path</parameter> rovno 1, PHP se pokusí - otevøít soubor ve standardní include cestì. + otevøít soubor v standardní include cestì. </para> </refsect1> </refentry> @@ -693,7 +694,7 @@ maximální poèet znakù na øádek výstupu. Funkce se sna¾í nerozdìlovat slova. </para> <para> - Viz také <function>hebrevc</function> + Viz také: <function>hebrevc</function>. </para> </refsect1> </refentry> @@ -723,7 +724,7 @@ øádek výstupu. Funkce se sna¾í nerozdìlovat slova. </para> <para> - Viz také <function>hebrev</function> + Viz také: <function>hebrev</function>. </para> </refsect1> </refentry> @@ -747,7 +748,7 @@ toho, ¾e na HTML entity se pøevedou v¹echny znaky, které mají odpovídající entity. Stejnì jako <function>htmlspecialchars</function> pøijímá volitelný druhý argument, který indikuje, co se má stát s jednoduchými a dvojitými - uvozovkami. <constant>ENT_COMPAT</constant> (výchozí) pøevede pouze dvojité + uvozovkami. <constant>ENT_COMPAT</constant> (default) pøevede pouze dvojité uvozovky, <constant>ENT_QUOTES</constant> pøevede dvojité i jednoduché uvozovky, a <constant>ENT_NOQUOTES</constant> ponechá jednoduché i dvojité uvozovky bez konverze. @@ -757,7 +758,7 @@ byl pøidán v PHP 3.0.17 a PHP 4.0.3. </para> <para> - Viz také <function>htmlspecialchars</function> a + Viz také: <function>htmlspecialchars</function> a <function>nl2br</function>. </para> </refsect1> @@ -779,7 +780,7 @@ </funcsynopsis> <para> Nìkteré znaky mají v HTML zvlá¹tní význam, a pokud si mají zachovat bì¾ný - význam, mìly by být reprezentovány HTML entitami. Tato funkce vrátí øetìzec, + význam, mìly by být reprezentovány HTML entitami. Tato funkce vrací øetìzec, ve kterém do¹lo k nìkterým z tìchto konverzí; provádìjí se ty pøeklady, které jsou v ka¾dodenním programování pro web neju¾iteènìj¹í. Pokud po¾adujete pøeklad v¹ech znakových entit HTML, pou¾ijte @@ -837,7 +838,7 @@ Volitelný druhý argument byl pøidán v PHP 3.0.17 a PHP 4.0.3. </para> <para> - Viz také <function>htmlentities</function> a + Viz také: <function>htmlentities</function> a <function>nl2br</function>. </para> </refsect1> @@ -858,10 +859,10 @@ </funcprototype> </funcsynopsis> <para> - Vrátí øetìzec obsahující øetìzcovou reprezentaci v¹ech prvkù pole v pùvodním + Vrací øetìzec obsahující øetìzcovou reprezentaci v¹ech prvkù pole v pùvodním poøadí s øetìzcem <parameter>glue</parameter> mezi ka¾dými dvìma prvky. <example> - <title>Ukázka <function>Implode</function></title> + <title>Ukázka <function>implode</function></title> <programlisting role="php"> $colon_separated = implode (":", $array); </programlisting> @@ -871,13 +872,14 @@ <para> <function>implode</function> mù¾e z historických dùvodù pøijímat argumenty v obou mo¾ných poøadích. Kvùli konzistenci s - <function>explode</function> je ale asi ménì matoucí pou¾ívat dokumentované + <function>explode</function> se ale doporuèuje pou¾ívat dokumentované poøadí argumentù. </para> </note> <simpara> - Viz také <function>explode</function>, <function>join</function>, - a <function>split</function>. + Viz také: <function>explode</function>, + <function>join</function> a + <function>split</function>. </simpara> </refsect1> </refentry> @@ -901,8 +903,9 @@ a je ve v¹ech ohledech stejná. </simpara> <simpara> - Viz také <function>explode</function>, <function>implode</function>, - a <function>split</function>. + Viz také: <function>explode</function>, + <function>implode</function> a + <function>split</function>. </simpara> </refsect1> </refentry> @@ -938,7 +941,7 @@ </funcprototype> </funcsynopsis> <para> - Tato funkce vrátí ??? Levenshtein-Distance mezi pøedanými øetìzci nebo -1, + Tato funkce vrací XXX Levenshtein-Distance mezi pøedanými øetìzci nebo -1, pokud délka jednoho z pøedaných øetìzcù pøesáhne omezení 255 znakù (255 by mìlo být pro bì¾ná porovnání víc ne¾ dost, a nikdo se zdravým rozumem nebude v PHP dìlat genetickou analýzu). @@ -1019,9 +1022,9 @@ do pøedchozích dvou variant. </para> <para> - Viz také <function>soundex</function>, - <function>similar_text</function> - a <function>metaphone</function>. + Viz také: <function>soundex</function>, + <function>similar_text</function> a + <function>metaphone</function>. </para> </refsect1> </refentry> @@ -1040,12 +1043,13 @@ </funcprototype> </funcsynopsis> <para> - Tato funkce oøízne netisknutelné znaky ze zaèátku øetìzce a vrátí oøíznutý + Tato funkce oøízne netisknutelné znaky ze zaèátku øetìzce a vrací oøíznutý øetìzec. Netisknutelné znaky, které se v souèasnosti odstraòují, jsou: "\n", "\r", "\t", "\v", "\0", a prostá mezera. </para> <para> - Viz také <function>chop</function>, <function>rtrim</function>, a + Viz také: <function>chop</function>, + <function>rtrim</function> a <function>trim</function>. </para> </refsect1> @@ -1070,7 +1074,7 @@ RSA Data Security, Inc.</ulink>. </para> <para> - Viz také: <function>crc32</function> + Viz také: <function>crc32</function>. </para> </refsect1> </refentry> @@ -1092,14 +1096,14 @@ Spoèítá metaphone klíè argumentu <parameter>str</parameter>. </para> <para> - <function>etaphone</function>, podobnì jako <function>soundex</function>, + <function>metaphone</function>, podobnì jako <function>soundex</function>, vytvoøí stejný klíè pro podobnì znìjící slova. Je pøesnìj¹í ne¾ <function>soundex</function>, proto¾e zná základní pravidla anglické výslovnosti. Metaphone klíèe mají promìnlivou délku. </para> <para> Metaphone vyvinul Lawrence Philips - &lt;lphilips@verity.com>. Je popsáno v ["Practical + &lt;lphilips@verity.com&gt;. Je popsáno v ["Practical Algorithms for Programmers", Binstock &amp; Rex, Addison Wesley, 1995]. <note> @@ -1114,7 +1118,7 @@ <refentry id="function.nl2br"> <refnamediv> <refname>nl2br</refname> - <refpurpose>Pøevede konce øádkù na HTML XXX konce øádkù</refpurpose> + <refpurpose>Pøevede konce øádkù na HTML konce øádkù</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1125,11 +1129,11 @@ </funcprototype> </funcsynopsis> <para> - Vrátí <parameter>string</parameter>, ve kterém je pøed ka¾dý konec øádku + Vrací <parameter>string</parameter>, ve kterém je pøed ka¾dý konec øádku vlo¾en tag '&lt;BR&gt;'. </para> <para> - Viz také <function>htmlspecialchars</function>, + Viz také: <function>htmlspecialchars</function>, <function>htmlentities</function> a <function>wordwrap</function>. </para> @@ -1150,10 +1154,10 @@ </funcprototype> </funcsynopsis> <para> - Vrátí ASCII hodnotu prvního znaku v <parameter>string</parameter>. Tato + Vrací ASCII hodnotu prvního znaku v <parameter>string</parameter>. Tato funkce doplòuje <function>chr</function>. <example> - <title>Ukázka <function>Ord</function></title> + <title>Ukázka <function>ord</function></title> <programlisting role="php"> if (ord ($str) == 10) { echo "Prvním znakem \$str je line feed.\n"; @@ -1162,7 +1166,7 @@ </example> </para> <simpara> - Viz také <function>chr</function>. + Viz také: <function>chr</function>. </simpara> </refsect1> </refentry> @@ -1170,7 +1174,7 @@ <refentry id="function.parse-str"> <refnamediv> <refname>parse_str</refname> - <refpurpose>Rozlo¾it øetìzec do promìnných</refpurpose> + <refpurpose>Roparsovat øetìzec do promìnných</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1182,8 +1186,8 @@ </funcprototype> </funcsynopsis> <para> - Rozlo¾í øetìzec, jako kdyby to byl query string pøedaný v URL a definuje - pøíslu¹né promìnné v souèasném prostoru. Pokud je pøedán druhý argument + Rozparsuje øetìzec jako kdyby to byl querystring pøedaný v URL a definuje + pøíslu¹né promìnné v souèasném scope. Pokud je pøedán druhý argument <parameter>arr</parameter>, promìnné se místo toho ulo¾í do této promìnné jako pole. </para> @@ -1219,8 +1223,9 @@ Vytiskne <parameter>arg</parameter>. </simpara> <simpara> - Viz také: <function>echo</function>, <function>printf</function>, - a <function>flush</function>. + Viz také: <function>echo</function>, + <function>printf</function> a + <function>flush</function>. </simpara> </refsect1> </refentry> @@ -1246,9 +1251,11 @@ v dokumentaci <function>sprintf</function>. </simpara> <simpara> - Viz také: <function>print</function>, <function>sprintf</function>, - <function>sscanf</function>, <function>fscanf</function>, - a <function>flush</function>. + Viz také: <function>print</function>, + <function>sprintf</function>, + <function>sscanf</function>, + <function>fscanf</function> a + <function>flush</function>. </simpara> </refsect1> </refentry> @@ -1271,9 +1278,9 @@ </funcprototype> </funcsynopsis> <simpara> - Tato funkce vrátí osmibitový binární øetìzec odpovídající dekédovanému + Tato funkce vrací osmibitový binární øetìzec odpovídající dekódovanému quoted printable øetìzci. Tato funkce je podobná - <function>imap_qprint</function>, s tou výjimkou, ¾e tato funkce nevy¾aduje + <function>imap_qprint</function> s tou výjimkou, ¾e tato funkce nevy¾aduje IMAP modul. </simpara> </refsect1> @@ -1293,14 +1300,14 @@ </funcprototype> </funcsynopsis> <para> - Vrátí verzi <parameter>str</parameter> se zpìtným lomítkem pøed v¹emi výskyty + Vrací verzi <parameter>str</parameter> se zpìtným lomítkem pøed v¹emi výskyty následujících znakù: <screen>. \\ + * ? [ ^ ] ( $ )</screen> </para> <simpara> - Viz také <function>addslashes</function>, + Viz také: <function>addslashes</function>, <function>htmlentities</function>, <function>htmlspecialchars</function>, - <function>nl2br</function>, a + <function>nl2br</function> a <function>stripslashes</function>. </simpara> </refsect1> @@ -1318,7 +1325,7 @@ <paramdef>string <parameter>str</parameter></paramdef> </funcsynopsis> <para> - Vrátí pøedaný øetìzec bez netisknutelných znakù (vè. koncù øádku) na konci. + Vrací pøedaný øetìzec bez netisknutelných znakù (vè. koncù øádku) na konci. Toto je alias k <function>chop</function>. <example> <title>Ukázka <function>rtrim</function></title> @@ -1328,7 +1335,8 @@ </example> </para> <para> - Viz také <function>trim</function>, <function>ltrim</function>, a + Viz také: <function>trim</function>, + <function>ltrim</function> a <function>rtrim</function>. </para> </refsect1> @@ -1337,7 +1345,7 @@ <refentry id="function.sscanf"> <refnamediv> <refname>sscanf</refname> - <refpurpose>Parsovat vstupní øetìzec podle formátu</refpurpose> + <refpurpose>Rozparsovat vstupní øetìzec podle formátu</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1352,28 +1360,28 @@ </funcprototype> </funcsynopsis> <para> - Funkce <function>sscanf</function> je vstupní obdobou - <function>printf</function>. <function>sscanf</function> ète øetìzec - <parameter>str</parameter> a interpretuje ho podle specifikovaného - <parameter>format</parameter>-u. Pokud dostane pouze dva argumenty, - vrátí rozparsované hodnoty jako pole. + Funkce <function>sscanf</function> je vstupním analogem + <function>printf</function>. <function>sscanf</function> ète øetìzec + <parameter>str</parameter> a interpretuje ho podle formátu + <parameter>format</parameter>. Pokud jsou jí pøedány pouze dva argumenty, + vrací rozparsované hodnoty v poli. <example> - <title>Ukázka <function>Sscanf</function> Example</title> + <title>Ukázka <function>sscanf</function></title> <programlisting role="php"> -// getting the serial number +// zji¹tìní sériového èísla $serial = sscanf("SN/2350001","SN/%d"); -// and the date of manufacturing +// a data výroby $mandate = "January 01 2000"; list($month, $day, $year) = sscanf($mandate,"%s %d %d"); -echo "Item $serial was manufactured on: $year-".substr($month,0,3)."-$day\n"; +echo "Zbo¾í $serial bylo vyrobeno: $year-".substr($month,0,3)."-$day\n"; </programlisting> </example> - If optional parameters are passed, the function will return the number of - assigned values. The optional parameters must be passed by reference. + Pokud jsou jí pøedány volitelné argumenty, vrací tato funkce poèet + pøiøazených hodnot. Volitelné argumenty musí být pøedány odkazem. <example> - <title>Ukázka <function>Sscanf</function> - using optional parameters</title> + <title>Ukázka <function>sscanf</function> - pou¾ití volitelných argumentù</title> <programlisting role="php"> -// get author info and generate DocBook entry +// zjistit informace o autorovi a vygenerovat DocBook záznam $auth = "24\tLewis Carroll"; $n = sscanf($auth,"%d\t%s %s", &amp;$id, &amp;$first, &amp;$last); echo "&lt;author id='$id'&gt; @@ -1384,8 +1392,9 @@ </example> </para> <para> - Viz také: <function>fscanf</function>, <function>printf</function>, - and <function>sprintf</function>. + Viz také: <function>fscanf</function>, + <function>printf</function> a + <function>sprintf</function>. </para> </refsect1> </refentry> @@ -1405,59 +1414,56 @@ </funcprototype> </funcsynopsis> <para> - <parameter>Category</parameter> is a string specifying the - category of the functions affected by the locale setting: + <parameter>category</parameter> je øetìzec urèující kategorii funkcí + ovlivnìných nastavením locale: <itemizedlist> <listitem> <simpara> - LC_ALL for all of the below + LC_ALL pro v¹echny ní¾e uvedené kategorie </simpara> </listitem> <listitem> <simpara> - LC_COLLATE for string comparison - not currently implemented in PHP + LC_COLLATE pro porovnávání øetìzcù - v PHP v souèasnosti neimplementováno </simpara> </listitem> <listitem> <simpara> - LC_CTYPE for character classification and conversion, for - example <function>strtoupper</function> + LC_CTYPE pro klasifikaci a konverzi znakù, napø. + <function>strtoupper</function> </simpara> </listitem> <listitem> <simpara> - LC_MONETARY for localeconv() - not currently implemented in - PHP + LC_MONETARY pro localeconv() - v PHP v souèasnosti neimplementováno </simpara> </listitem> <listitem> <simpara> - LC_NUMERIC for decimal separator + LC_NUMERIC pro oddìlovaè desetinných míst </simpara> </listitem> <listitem> <simpara> - LC_TIME for date and time formatting with - <function>strftime</function> + LC_TIME pro formátování data a èasu pomocí <function>strftime</function> </simpara> </listitem> </itemizedlist> </para> <para> - If <parameter>locale</parameter> is the empty string - <literal>""</literal>, the locale names will be set from the - values of environment variables with the same names as the above - categories, or from "LANG". + Pokud je <parameter>locale</parameter> prázný øetìzec + (<literal>""</literal>), názvy locale se nastaví na hodnoty systémových + promìnných se stejnými jmény jako mají vý¹e uvedené kategorie, nebo z "LANG". </para> <para> - If locale is zero or <literal>"0"</literal>, the locale setting - is not affected, only the current setting is returned. + Pokud je <parameter>locale</parameter> nula nebo <literal>"0"</literal>, + locale se nezmìní, pouze se vrátí souèasná hodnota. </para> <para> - Setlocale returns the new current locale, or false if the locale - functionality is not implemented in the plattform, the specified - locale does not exist or the category name is invalid. - An invalid category name also causes a warning message. + <function>setlocale</function> vrací nové aktuální locale nebo + <literal>false</literal>, pokud na dotyèné platformì není funkcionalita + locale implementována, zadané locale neexistuje, nebo je název kategorie + neplatný. Neplatný název kategorie také vyvolá varování. </para> </refsect1> </refentry> @@ -1465,9 +1471,7 @@ <refentry id="function.similar-text"> <refnamediv> <refname>similar_text</refname> - <refpurpose> - Calculate the similarity between two strings - </refpurpose> + <refpurpose>Spoèítat podobnost dvou øetìzcù</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1482,18 +1486,16 @@ </funcprototype> </funcsynopsis> <para> - This calculates the similarity between two strings as described - in Oliver [1993]. Note that this implementation does not use a - stack as in Oliver's pseudo code, but recursive calls which may - or may not speed up the whole process. Note also that the - complexity of this algorithm is O(N**3) where N is the length of - the longest string. + <function>similar_text</function> spoèítá podobnost dvou øetìzcù podle + Oliver [1993]. Pozn.: Tato implementace nepou¾ívá stack jako v Oliverovì + pseudokódu, nýbr¾ rekurzivní volání, co¾ mù¾e èi nemusí celý proces + zrychlit. Komplexita tohoto algoritmu je O(N**3) kde N je délka nejdel¹ího + øetìzce. </para> <para> - By passing a reference as third argument, - <function>similar_text</function> will calculate the similarity - in percent for you. It returns the number of matching chars in - both strings. + Pokud je <function>similar_text</function> pøedán tøetí argument (odkazem), + spoèítá tato funkce podobnost v procentech. Vrací poèet znakù shodných + v obou øetìzcích. </para> </refsect1> </refentry> @@ -1501,7 +1503,7 @@ <refentry id="function.soundex"> <refnamediv> <refname>soundex</refname> - <refpurpose>Calculate the soundex key of a string</refpurpose> + <refpurpose>Spoèítat soundex klíè øetìzce</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1512,23 +1514,22 @@ </funcprototype> </funcsynopsis> <para> - Calculates the soundex key of <parameter>str</parameter>. + Spoèítá soundex klíè <parameter>str</parameter>. </para> <para> - Soundex keys have the property that words pronounced similarly - produce the same soundex key, and can thus be used to simplify - searches in databases where you know the pronunciation but not - the spelling. This soundex function returns a string 4 characters - long, starting with a letter. + Soundex klíèe mají tu vlastnost, ¾e slova vyslovovaná podobnì produkují + shodné soundex klíèe, a dají se proto vyu¾ít ke zjednodu¹ení hledání v + databázích, kde znáte výslovnost, ale ne hláskování. Tato funkce vrací + øetìzec dlouhý 4 znaky zaèínající písmenem. </para> <para> - This particular soundex function is one described by Donald Knuth - in "The Art Of Computer Programming, vol. 3: Sorting And - Searching", Addison-Wesley (1973), pp. 391-392. + Tato konkrétní soundex funkce je popsána Donaldem Knuthem v "The Art Of + Computer Programming, vol. 3: Sorting And Searching", Addison-Wesley + (1973), pp. 391-392. </para> <para> <example> - <title>Soundex Examples</title> + <title>Soundex ukázky</title> <programlisting role="php"> soundex ("Euler") == soundex ("Ellery") == 'E460'; soundex ("Gauss") == soundex ("Ghosh") == 'G200'; @@ -1545,7 +1546,7 @@ <refentry id="function.sprintf"> <refnamediv> <refname>sprintf</refname> - <refpurpose>Return a formatted string</refpurpose> + <refpurpose>Vrátit formátovaný øetìzec</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1559,100 +1560,91 @@ </funcprototype> </funcsynopsis> <simpara> - Returns a string produced according to the formatting string + Vrací øetìzec vytvoøený podle formátovacího øetìzce <parameter>format</parameter>. </simpara> <simpara> - The format string is composed of zero or more directives: - ordinary characters (excluding <literal>%</literal>) that are - copied directly to the result, and <emphasis>conversion - specifications</emphasis>, each of which results in fetching its - own parameter. This applies to both <function>sprintf</function> - and <function>printf</function>. + Formátovací øetìzec se skládá z nula nebo více direktiv: + bì¾ných znakù (kromì <literal>%</literal>), které se pøímo kopírují do + výsledku, a <emphasis>pøevodních specifikací</emphasis>, z nich¾ ka¾dá + pøijímá jeden argument. Toto platí pro <function>sprintf</function> i + <function>printf</function>. </simpara> <para> - Each conversion specification consists of a percent sign - (<literal>%</literal>), followed by one or more of these - elements, in order: + Ka¾dá pøevodní specifikace se skládá ze znaku procenta + (<literal>%</literal>), následovaného jedním nebo více z tìchto znakù, v + tomto poøadí: <orderedlist> <listitem> <simpara> - An optional <emphasis>padding specifier</emphasis> that says - what character will be used for padding the results to the - right string size. This may be a space character or a - <literal>0</literal> (zero character). The default is to pad - with spaces. An alternate padding character can be specified - by prefixing it with a single quote (<literal>'</literal>). - See the examples below. + Volitelný <emphasis>padding specifier</emphasis>, který urèuje, jaký + znak se pou¾ije na doplnìní výsledku na správnou délku øetìzce. Mù¾e to + být mezera nebo <literal>0</literal> (písmeno nula). Default je nula. + Jiný doplòující znak mù¾ete zadat tak, ¾e pøed nìj pøedøadíte jednoduchou + uvozovku (<literal>'</literal>). Viz ukázky ní¾e. </simpara> </listitem> <listitem> <simpara> - An optional <emphasis>alignment specifier</emphasis> that says - if the result should be left-justified or right-justified. - The default is right-justified; a <literal>-</literal> - character here will make it left-justified. + Volitelný <emphasis>alignment specifier</emphasis>, který urèuje, jestli + se má výsledek zarovnat doleva nebo doprava. Default je doprava, pomlèka + (<literal>-</literal>) to zmìní na doleva. </simpara> </listitem> <listitem> <simpara> - An optional number, a <emphasis>width specifier</emphasis> - that says how many characters (minimum) this conversion should - result in. + Volitelné èíslo <emphasis>width specifier</emphasis>, které urèuje, + kolik znakù (minimálnì) má obsahovat výsledek pøevodu. </simpara> </listitem> <listitem> <simpara> - An optional <emphasis>precision specifier</emphasis> that says - how many decimal digits should be displayed for floating-point - numbers. This option has no effect for other types than - double. (Another function useful for formatting numbers is - <function>number_format</function>.) + Volitelný <emphasis>precision specifier</emphasis>, který urèuje, kolik + desetinných míst se má zobrazit u èísel s desetinnou èárkou. Tento + pøepínaè nemá ¾ádný vliv na jiné typy ne¾ double. (Dal¹í funkcí + u¾iteènou na formátování èísel je <function>number_format</function>.) </simpara> </listitem> <listitem> <para> - A <emphasis>type specifier</emphasis> that says what type the - argument data should be treated as. Possible types: + <emphasis>type specifier</emphasis>, který urèuje, za jaký typ se mají + data argumentu pova¾ovat. Mo¾né typy: <simplelist> <member> - <literal>%</literal> - a literal percent character. No - argument is required. + <literal>%</literal> - a doslovný znak procenta. Nevy¾aduje se ¾ádný + argument. </member> <member> - <literal>b</literal> - the argument is treated as an - integer, and presented as a binary number. + <literal>b</literal> - argument se pova¾uje za integer a je + prezentován jako binární èíslo. </member> <member> - <literal>c</literal> - the argument is treated as an - integer, and presented as the character with that ASCII - value. + <literal>c</literal> - argument se pova¾uje za integer a je + prezentován jako znak s touto ASCII hodnotou. </member> <member> - <literal>d</literal> - the argument is treated as an - integer, and presented as a decimal number. + <literal>d</literal> - argument se pova¾uje za integer a je + prezentován jako desítkové èíslo. </member> <member> - <literal>f</literal> - the argument is treated as a double, - and presented as a floating-point number. + <literal>f</literal> - argument se pova¾uje za double a je + prezentován jako èíslo s plovoucí desetinou èárkou. </member> <member> - <literal>o</literal> - the argument is treated as an - integer, and presented as an octal number. + <literal>o</literal> - argument se pova¾uje za integer a je + prezentován jako oktalové èíslo. </member> <member> - <literal>s</literal> - the argument is treated as and - presented as a string. + <literal>s</literal> - argument se pova¾uje za øetìzec a je takto + prezentován. </member> <member> - <literal>x</literal> - the argument is treated as an integer - and presented as a hexadecimal number (with lowercase - letters). + <literal>x</literal> - the argument se pova¾uje za integer a je + prezentován jako hexadecimální èíslo (s malými písmeny). </member> <member> - <literal>X</literal> - the argument is treated as an integer - and presented as a hexadecimal number (with uppercase - letters). + <literal>X</literal> - argument se pova¾uje za integer a je + prezentován jako hexadecimální èíslo (s kapitálkami). </member> </simplelist> </para> @@ -1660,21 +1652,23 @@ </orderedlist> </para> <simpara> - Viz také: <function>printf</function>, <function>sscanf</function>, - <function>fscanf</function>, and <function>number_format</function>. + Viz také: <function>printf</function>, + <function>sscanf</function>, + <function>fscanf</function> a + <function>number_format</function>. </simpara> </refsect1> <refsect1> - <title>Examples</title> + <title>Ukázky</title> <para> <example> - <title>Ukázka <function>Sprintf</function>: zero-padded integers</title> + <title>Ukázka <function>sprintf</function>: zero-padded integers</title> <programlisting role="php"> $isodate = sprintf ("%04d-%02d-%02d", $year, $month, $day); </programlisting> </example> <example> - <title>Ukázka <function>Sprintf</function>: formatting currency</title> + <title>Ukázka <function>sprintf</function>: formatting currency</title> <programlisting role="php"> $money1 = 68.75; $money2 = 54.35; @@ -1692,7 +1686,7 @@ <refnamediv> <refname>strncasecmp</refname> <refpurpose> - Binary safe case-insensitive string comparison of the first n characters + Binárnì bezpeèné case-insensitive porovnání prvních n znakù øetìzcù </refpurpose> </refnamediv> <refsect1> @@ -1706,23 +1700,24 @@ </funcprototype> </funcsynopsis> <para> - This function is similar to <function>strcasecmp</function>, with the - difference that you can specify the (upper limit of the) number of - characters (<parameter>len</parameter>) from each string to be - used in the comparison. If any of the strings is shorter than - <parameter>len</parameter>, then the length of that string will be - used for the comparison. - </para> - <simpara> - Returns &lt; 0 if <parameter>str1</parameter> is less than - <parameter>str2</parameter>; &gt; 0 if <parameter>str1</parameter> - is greater than <parameter>str2</parameter>, and 0 if they are - equal. - </simpara> - <simpara> - Viz také <function>ereg</function>, <function>strcasecmp</function>, - <function>strcmp</function>, <function>substr</function>, - <function>stristr</function>, and <function>strstr</function>. + Tato funkce se podobá <function>strcasecmp</function>, s tím rozdílem, ¾e + mù¾ete urèit (maximální) poèet znakù (<parameter>len</parameter>) z ka¾dého + z øetìzcù, které se pou¾ijí pøi porovnání. Pokud je nìkterý z øetìzcù + krat¹í ne¾ <parameter>len</parameter>, pak se pro porovnání pou¾ije délka + tohoto øetìzce. + </para> + <simpara> + Pokud je <parameter>str1</parameter> ménì ne¾ <parameter>str2</parameter>, + vrací &lt; 0; pokud je <parameter>str1</parameter> vìt¹í ne¾ + <parameter>str2</parameter>, vrací &gt; 0, a 0, pokud jsou stejné. + </simpara> + <simpara> + Viz také: <function>ereg</function>, + <function>strcasecmp</function>, + <function>strcmp</function>, + <function>substr</function>, + <function>stristr</function> a + <function>strstr</function>. </simpara> </refsect1> </refentry> @@ -1731,7 +1726,7 @@ <refnamediv> <refname>strcasecmp</refname> <refpurpose> - Binary safe case-insensitive string comparison + Binárnì bezpeèné case-insensitive porovnání øetìzcù </refpurpose> </refnamediv> <refsect1> @@ -1744,25 +1739,27 @@ </funcprototype> </funcsynopsis> <para> - Returns &lt; 0 if <parameter>str1</parameter> is less than - <parameter>str2</parameter>; &gt; 0 if <parameter>str1</parameter> - is greater than <parameter>str2</parameter>, and 0 if they are - equal. + Pokud je <parameter>str1</parameter> ménì ne¾ <parameter>str2</parameter> + vrací &lt; 0; pokud je <parameter>str1</parameter> vìt¹í ne¾ + <parameter>str2</parameter> vrací &gt; 0, a 0, pokud jsou stejné. <example> <title>Ukázka <function>strcasecmp</function></title> <programlisting role="php"> $var1 = "Hello"; $var2 = "hello"; if (!strcasecmp ($var1, $var2)) { - echo '$var1 is equal to $var2 in a case-insensitive string comparison'; + echo 'v case-insensitive textovém porovnání se $var1 rovná $var2'; } </programlisting> </example> </para> <simpara> - Viz také <function>ereg</function>, <function>strcmp</function>, - <function>substr</function>, <function>stristr</function>, - <function>strncasecmp</function>, and <function>strstr</function>. + Viz také: <function>ereg</function>, + <function>strcmp</function>, + <function>substr</function>, + <function>stristr</function>, + <function>strncasecmp</function> a + <function>strstr</function>. </simpara> </refsect1> </refentry> @@ -1770,9 +1767,7 @@ <refentry id="function.strchr"> <refnamediv> <refname>strchr</refname> - <refpurpose> - Find the first occurrence of a character - </refpurpose> + <refpurpose>Najít první výskyt znaku</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1784,8 +1779,8 @@ </funcprototype> </funcsynopsis> <para> - This function is an alias for <function>strstr</function>, and is - identical in every way. + Tato funkce je alias k <function>strstr</function>, a je ve v¹ech smìrech + identická. </para> </refsect1> </refentry> @@ -1793,7 +1788,7 @@ <refentry id="function.strcmp"> <refnamediv> <refname>strcmp</refname> - <refpurpose>Binary safe string comparison</refpurpose> + <refpurpose>Binárnì bezpeènì porovnat øetìzce</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1805,19 +1800,21 @@ </funcprototype> </funcsynopsis> <simpara> - Returns &lt; 0 if <parameter>str1</parameter> is less than - <parameter>str2</parameter>; &gt; 0 if <parameter>str1</parameter> - is greater than <parameter>str2</parameter>, and 0 if they are - equal. + Pokud je <parameter>str1</parameter> ménì ne¾ <parameter>str2</parameter>, + vrací &lt; 0; pokud je <parameter>str1</parameter> vìt¹í ne¾ + <parameter>str2</parameter>, vrací &gt; 0, a 0, pokud jsou stejné. </simpara> <simpara> - Note that this comparison is case sensitive. + Pozn.: toto srovnání je case-sensitive. </simpara> <simpara> - Viz také <function>ereg</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strncasecmp</function>, - <function>strncmp</function>, and <function>strstr</function>. + Viz také: <function>ereg</function>, + <function>strcasecmp</function>, + <function>substr</function>, + <function>stristr</function>, + <function>strncasecmp</function>, + <function>strncmp</function> a + <function>strstr</function>. </simpara> </refsect1> </refentry> @@ -1826,7 +1823,7 @@ <refnamediv> <refname>strcspn</refname> <refpurpose> - Find length of initial segment not matching mask + Najít délku úvodního segmentu neodpovídajícího masce </refpurpose> </refnamediv> <refsect1> @@ -1839,12 +1836,11 @@ </funcprototype> </funcsynopsis> <simpara> - Returns the length of the initial segment of - <parameter>str1</parameter> which does <emphasis>not</emphasis> - contain any of the characters in <parameter>str2</parameter>. + Vrací délku úvodního segmentu <parameter>str1</parameter>, který + <emphasis>ne</emphasis>obsahuje ¾ádný ze znakù <parameter>str2</parameter>. </simpara> <simpara> - Viz také <function>strspn</function>. + Viz také: <function>strspn</function>. </simpara> </refsect1> </refentry> @@ -1852,7 +1848,7 @@ <refentry id="function.strip-tags"> <refnamediv> <refname>strip_tags</refname> - <refpurpose>Strip HTML and PHP tags from a string</refpurpose> + <refpurpose>Odstranit z øetìzce HTML a PHP tagy</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1866,18 +1862,18 @@ </funcprototype> </funcsynopsis> <para> - This function tries to strip all HTML and PHP tags from the given - string. It errors on the side of caution in case of incomplete + Tato funkce se sna¾í odstranit z pøedaného øetìzce v¹echny HTML a PHP tagy. + It errors on the side of caution in case of incomplete or bogus tags. It uses the same tag stripping state machine as the <function>fgetss</function> function. </para> <para> - You can use the optional second parameter to specify tags which - should not be stripped. + Volitelný druhý argument mù¾ete pou¾ít k urèení tagù, které se nemají + odstranit. <note> <para> - <parameter>Allowable_tags</parameter> was added in PHP 3.0.13, - PHP4B3. + Argument <parameter>allowable_tags</parameter> byl pøidán v PHP 3.0.13, + PHP 4 b3. </para> </note> </para> @@ -1900,17 +1896,17 @@ </funcprototype> </funcsynopsis> <para> - Returns a string with backslashes stripped off. Recognizes - C-like <literal>\n</literal>, <literal>\r</literal> ..., octal - and hexadecimal representation. + Vrací øetìzec bez odstranìných zpìtných lomítek. Rozeznává Céèkové + <literal>\n</literal>, <literal>\r</literal> ..., oktalové a hexadecimální + reprezentace. <note> <simpara> - Added in PHP4b3-dev. + Tato funkce byla pøidána v PHP4b3-dev. </simpara> </note> </para> <simpara> - Viz také <function>addcslashes</function>. + Viz také: <function>addcslashes</function>. </simpara> </refsect1> </refentry> @@ -1931,12 +1927,12 @@ </funcprototype> </funcsynopsis> <para> - Returns a string with backslashes stripped off. - (<literal>\'</literal> becomes <literal>'</literal> and so on.) - Double backslashes are made into a single backslash. + Vrací øetìzec bez odstranìných zpìtných lomítek. + (<literal>\'</literal> se stává <literal>'</literal> a pod.) + Zdvojená zpìtná lomítka se spojují do jednoduchých. </para> <simpara> - Viz také <function>addslashes</function>. + Viz také: <function>addslashes</function>. </simpara> </refsect1> </refentry> @@ -1958,21 +1954,22 @@ </funcprototype> </funcsynopsis> <para> - Returns all of <parameter>haystack</parameter> from the first - occurrence of <parameter>needle</parameter> to the end. - <parameter>needle</parameter> and <parameter>haystack</parameter> - are examined in a case-insensitive manner. + Vrací <parameter>haystack</parameter> od prvního výskytu + <parameter>needle</parameter> do konce. + <parameter>needle</parameter> a <parameter>haystack</parameter> + se zkoumají bez ohledu na velikost písmen. </para> <para> - If <parameter>needle</parameter> is not found, returns false. + Pokud <parameter>needle</parameter> nenajde, vrací <literal>false</literal>. </para> <para> - If <parameter>needle</parameter> is not a string, it is converted - to an integer and applied as the ordinal value of a character. + Pokud <parameter>needle</parameter> není øetìzec, pøevede se na integer a + pou¾ije se jako XXX ordinal hodnota znaku. </para> <para> - Viz také <function>strchr</function>, - <function>strrchr</function>, <function>substr</function>, and + Viz také: <function>strchr</function>, + <function>strrchr</function>, + <function>substr</function> a <function>ereg</function>. </para> </refsect1> @@ -1981,7 +1978,7 @@ <refentry id="function.strlen"> <refnamediv> <refname>strlen</refname> - <refpurpose>Get string length</refpurpose> + <refpurpose>Zjistit délku øetìzce</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -1992,7 +1989,7 @@ </funcprototype> </funcsynopsis> <para> - Returns the length of <parameter>string</parameter>. + Vrací délku (poèet znakù) argumentu <parameter>string</parameter>. </para> </refsect1> </refentry> @@ -2000,9 +1997,7 @@ <refentry id="function.strnatcmp"> <refnamediv> <refname>strnatcmp</refname> - <refpurpose> - String comparisons using a "natural order" algorithm - </refpurpose> + <refpurpose>Porovnání øetìzcù algoritmem "pøirozeného tøídìní"</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2014,27 +2009,25 @@ </funcprototype> </funcsynopsis> <para> - This function implements a comparison algorithm that orders - alphanumeric strings in the way a human being would, this is - described as a "natural ordering". An example of the difference - between this algorithm and the regular computer string sorting - algorithms (used in <function>strcmp</function>) can be seen - below: + Tato funkce implementuje srovnávací algoritmus který tøídí alfanumerické + øetìzce stejným zpùsobem jako èlovìk, toto se popisuje jako "pøirozené + tøídìní". Ukázka rozdílu mìzi tímto algoritmem a bì¾nými poèítaèovými + algoritmy pro øazení øetìzcù (napø. <function>strcmp</function>): <informalexample> <programlisting> $arr1 = $arr2 = array ("img12.png","img10.png","img2.png","img1.png"); -echo "Standard string comparison\n"; +echo "Standardní porovnávání øetìzcù\n"; usort($arr1,"strcmp"); print_r($arr1); -echo "\nNatural order string comparison\n"; +echo "\nPøirozené porovnávání øetìzcù\n"; usort($arr2,"strnatcmp"); print_r($arr2); </programlisting> </informalexample> - The code above will generate the following output: + Vý¹e uvedený kód vygeneruje následující výstup: <informalexample> <programlisting> -Standard string comparison +Standardní porovnávání øetìzcù Array ( [0] =&gt; img1.png @@ -2043,7 +2036,7 @@ [3] =&gt; img2.png ) -Natural order string comparison +Pøirozené porovnávání øetìzcù Array ( [0] =&gt; img1.png @@ -2053,27 +2046,30 @@ ) </programlisting> </informalexample> - For more infomation see: Martin Pool's <ulink - url="&url.strnatcmp;">Natural Order String Comparison</ulink> - page. + Více informací viz stránka Martina Poola <ulink + url="&url.strnatcmp;">Natural Order String Comparison</ulink>. </para> <simpara> - Similar to other string comparison functions, this one returns - &lt; 0 if <parameter>str1</parameter> is less than - <parameter>str2</parameter>; &gt; 0 if <parameter>str1</parameter> - is greater than <parameter>str2</parameter>, and 0 if they are - equal. - </simpara> - <simpara> - Note that this comparison is case sensitive. - </simpara> - <simpara> - Viz také <function>ereg</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strcmp</function>, - <function>strncmp</function>, <function>strncasecmp</function>, - <function>strnatcasecmp</function>, <function>strstr</function>, - <function>natsort</function> and <function>natcasesort</function>. + Podobnì jako jiné funkce pro porovnávání øetìzcù i tato vrací &lt; 0 + pokud je <parameter>str1</parameter> men¹í ne¾ + <parameter>str2</parameter>; &gt; 0 pokud je <parameter>str1</parameter> + vìt¹í ne¾ <parameter>str2</parameter>, a 0 pokud jsou shodné. + </simpara> + <simpara> + Pozn.: toto porovnání je case-sensitive. + </simpara> + <simpara> + Viz také: <function>ereg</function>, + <function>strcasecmp</function>, + <function>substr</function>, + <function>stristr</function>, + <function>strcmp</function>, + <function>strncmp</function>, + <function>strncasecmp</function>, + <function>strnatcasecmp</function>, + <function>strstr</function>, + <function>natsort</function> a + <function>natcasesort</function>. </simpara> </refsect1> </refentry> @@ -2082,7 +2078,7 @@ <refnamediv> <refname>strnatcasecmp</refname> <refpurpose> - Case insensitive string comparisons using a "natural order" algorithm + Case-insensitive textové porovnání s vyu¾itím "natural order" algoritmu </refpurpose> </refnamediv> <refsect1> @@ -2095,27 +2091,28 @@ </funcprototype> </funcsynopsis> <para> - This function implements a comparison algorithm that orders - alphanumeric strings in the way a human being would. The - behavior of this function is similar to - <function>strnatcmp</function>, except that the comparison is - not case sensitive. For more infomation see: Martin Pool's - <ulink url="&url.strnatcmp;">Natural Order String - Comparison</ulink> page. + Tato funkce implementuje srovnávací algoritmus který tøídí alfanumerické + øetìzce stejným zpùsobem jako èlovìk. Chování této funkce se podobá + <function>strnatcmp</function> s tou výjimkou, ¾e porovnání je + case-insensitive. Více informací viz stránka Martina Poola + <ulink url="&url.strnatcmp;">Natural Order String Comparison</ulink>. </para> <simpara> - Similar to other string comparison functions, this one returns - &lt; 0 if <parameter>str1</parameter> is less than - <parameter>str2</parameter>; &gt; 0 if <parameter>str1</parameter> - is greater than <parameter>str2</parameter>, and 0 if they are - equal. + Podobnì jako jiné funkce pro porovnávání øetìzcù i tato vrací &lt; 0 + pokud je <parameter>str1</parameter> men¹í ne¾ + <parameter>str2</parameter>; &gt; 0 pokud je <parameter>str1</parameter> + vìt¹í ne¾ <parameter>str2</parameter>, a 0 pokud jsou shodné. </simpara> <simpara> - Viz také <function>ereg</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strcmp</function>, - <function>strncmp</function>, <function>strncasecmp</function>, - <function>strnatcmp</function>, and <function>strstr</function>. + Viz také: <function>ereg</function>, + <function>strcasecmp</function>, + <function>substr</function>, + <function>stristr</function>, + <function>strcmp</function>, + <function>strncmp</function>, + <function>strncasecmp</function>, + <function>strnatcmp</function> a + <function>strstr</function>. </simpara> </refsect1> </refentry> @@ -2124,7 +2121,7 @@ <refnamediv> <refname>strncmp</refname> <refpurpose> - Binary safe string comparison of the first n characters + Binárnì bezpeèné porovnání prvních n znakù v øetìzcích </refpurpose> </refnamediv> <refsect1> @@ -2146,19 +2143,21 @@ used for the comparison. </para> <simpara> - Returns &lt; 0 if <parameter>str1</parameter> is less than - <parameter>str2</parameter>; &gt; 0 if <parameter>str1</parameter> - is greater than <parameter>str2</parameter>, and 0 if they are - equal. + Vrací &lt; 0 pokud je <parameter>str1</parameter> men¹í ne¾ + <parameter>str2</parameter>; &gt; 0 pokud je <parameter>str1</parameter> + vìt¹í ne¾ <parameter>str2</parameter>, a 0 pokud jsou shodné. </simpara> <simpara> - Note that this comparison is case sensitive. + Pozn.: toto srovnání je case-sensitive. </simpara> <simpara> - Viz také <function>ereg</function>, <function>strncasecmp</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strcmp</function>, - and <function>strstr</function>. + Viz také: <function>ereg</function>, + <function>strncasecmp</function>, + <function>strcasecmp</function>, + <function>substr</function>, + <function>stristr</function>, + <function>strcmp</function> a + <function>strstr</function>. </simpara> </refsect1> </refentry> @@ -2166,7 +2165,7 @@ <refentry id="function.str-pad"> <refnamediv> <refname>str_pad</refname> - <refpurpose>Pad a string to a certain length with another string</refpurpose> + <refpurpose>Doplnit øetìzec jiným øetìzcem na urèitou délku</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2183,28 +2182,20 @@ </funcprototype> </funcsynopsis> <para> - This functions pads the <parameter>input</parameter> string on - the left, the right, or both sides to the specifed padding - length. If the optional argument - <parameter>pad_string</parameter> is not supplied, the - <parameter>input</parameter> is padded with spaces, otherwise it - is padded with characters from <parameter>pad_string</parameter> - up to the limit. + <function>str_pad</function> doplní øetìzec <parameter>input</parameter> + zleva, zprava nebo z obou stran na danou délku. Pokud jí není pøedán + volitelný argument <parameter>pad_string</parameter>, doplní se + <parameter>input</parameter> mezerami, jinak se doplní znaky z + <parameter>pad_string</parameter>. </para> - <para> - Optional argument <parameter>pad_type</parameter> can be - STR_PAD_RIGHT, STR_PAD_LEFT, or STR_PAD_BOTH. If - <parameter>pad_type</parameter> is not specified it is assumed to - be STR_PAD_RIGHT. + Volitelný argument <parameter>pad_type</parameter> mù¾e nabýt hodnot + STR_PAD_RIGHT, STR_PAD_LEFT nebo STR_PAD_BOTH. Default je STR_PAD_RIGHT. </para> - <para> - If the value of <parameter>pad_length</parameter> is negative or - less than the length of the input string, no padding takes - place. + Pokud je hodnota <parameter>pad_length</parameter> negativní nebo men¹í ne¾ + je délka <parameter>input</parameter>, k doplnìní nedojde. </para> - <para> <example> <title>Ukázka <function>str_pad</function></title> @@ -2222,9 +2213,7 @@ <refentry id="function.strpos"> <refnamediv> <refname>strpos</refname> - <refpurpose> - Find position of first occurrence of a string - </refpurpose> + <refpurpose>Najít pozici prvního výskytu øetìzce</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2239,32 +2228,30 @@ </funcprototype> </funcsynopsis> <para> - Returns the numeric position of the first occurrence of - <parameter>needle</parameter> in the - <parameter>haystack</parameter> string. Unlike the - <function>strrpos</function>, this function can take a full - string as the <parameter>needle</parameter> parameter and the - entire string will be used. + Vrací èíselnou pozici prvního výskytu <parameter>needle</parameter> v + øetìzci <parameter>haystack</parameter>. Narozdíl od + <function>strrpos</function> tato funkce pøijme jako + argument <parameter>needle</parameter> øetìzec více znakù, a celý tento + øetìzec se pou¾ije. </para> <para> - If <parameter>needle</parameter> is not found, returns false. + Pokud <parameter>needle</parameter> nenajde, vrací <literal>false</literal>. <note> <para> - It is easy to mistake the return values for "character found at - position 0" and "character not found". Here's how to detect - the difference: + Návratové hodnoty "znak nalezen na pozici 0" a "znak nenalezen" se dají + snadno zamìnit. Tady je návod, jak zjistit tento rozdíl: <informalexample> <programlisting role="php"> -// in PHP 4.0b3 and newer: +// v PHP 4.0b3 a novìj¹ích: $pos = strpos ($mystring, "b"); -if ($pos === false) { // note: three equal signs - // not found... +if ($pos === false) { // tøi rovnítka + // nenalezeno... } -// in versions older than 4.0b3: +// ve verzích star¹ích ne¾ 4.0b3: $pos = strpos ($mystring, "b"); if (is_string ($pos) &amp;&amp; !$pos) { - // not found... + // nenalezeno... } </programlisting> </informalexample> @@ -2272,19 +2259,20 @@ </note> </para> <para> - If <parameter>needle</parameter> is not a string, it is converted - to an integer and applied as the ordinal value of a character. + Pokud <parameter>needle</parameter> není øetìzec, pøevede se na integer a + pou¾ije se jako XXX ordinal hodnota znaku. </para> <para> - The optional <parameter>offset</parameter> parameter allows you - to specify which character in <parameter>haystack</parameter> to - start searching. The position returned is still relative to the - the beginning of <parameter>haystack</parameter>. + Volitelný argument <parameter>offset</parameter> vám umo¾òuje urèit na + které pozici v <parameter>haystack</parameter> má hledání zaèít. Vrácená + pozice je i tak relativní k zaèátku <parameter>haystack</parameter>. </para> <para> - Viz také <function>strrpos</function>, - <function>strrchr</function>, <function>substr</function>, - <function>stristr</function>, and <function>strstr</function>. + Viz také: <function>strrpos</function>, + <function>strrchr</function>, + <function>substr</function>, + <function>stristr</function> a + <function>strstr</function>. </para> </refsect1> </refentry> @@ -2292,9 +2280,7 @@ <refentry id="function.strrchr"> <refnamediv> <refname>strrchr</refname> - <refpurpose> - Find the last occurrence of a character in a string - </refpurpose> + <refpurpose>Najít poslední výskyt znaku v øetìzci</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2306,36 +2292,36 @@ </funcprototype> </funcsynopsis> <para> - This function returns the portion of - <parameter>haystack</parameter> which starts at the last - occurrence of <parameter>needle</parameter> and goes until the - end of <parameter>haystack</parameter>. + Tato funkce vrací tu èást <parameter>haystack</parameter>, která zaèíná + poslením výskytem <parameter>needle</parameter> a pokraèuje do konce + <parameter>haystack</parameter>. </para> <para> - Returns false if <parameter>needle</parameter> is not found. + Pokud <parameter>needle</parameter> nenajde, vrací <literal>false</literal>. </para> <para> - If <parameter>needle</parameter> contains more than one - character, the first is used. + Pokud <parameter>needle</parameter> obsahuje více ne¾ jeden znak, pou¾ije + se první z nich. </para> <para> - If <parameter>needle</parameter> is not a string, it is converted - to an integer and applied as the ordinal value of a character. + Pokud <parameter>needle</parameter> není øetìzec, pøevede se na integer a + pou¾ije se jako XXX ordinal hodnota znaku. <example> - <title>Ukázka <function>Strrchr</function></title> + <title>Ukázka <function>strrchr</function></title> <programlisting role="php"> -// get last directory in $PATH +// získat poslední adresáø v $PATH $dir = substr (strrchr ($PATH, ":"), 1); -// get everything after last newline -$text = "Line 1\nLine 2\nLine 3"; +// získat v¹echno po posledním konci øádku +$text = "Øádek 1\nØádek 2\nØádek 3"; $last = substr (strrchr ($text, 10), 1 ); </programlisting> </example> </para> <para> - Viz také <function>substr</function>, - <function>stristr</function>, and <function>strstr</function>. + Viz také: <function>substr</function>, + <function>stristr</function> a + <function>strstr</function>. </para> </refsect1> </refentry> @@ -2343,7 +2329,7 @@ <refentry id="function.str-repeat"> <refnamediv> <refname>str_repeat</refname> - <refpurpose>Repeat a string</refpurpose> + <refpurpose>Opakovat øetìzec</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2355,12 +2341,12 @@ </funcprototype> </funcsynopsis> <para> - Returns <parameter>input_str</parameter> repeated - <parameter>multiplier</parameter> times. - <parameter>multiplier</parameter> has to be greater than 0. + Vrací <parameter>input_str</parameter> <parameter>multiplier</parameter> + krát opakovaný. + <parameter>multiplier</parameter> musí být vìt¹í ne¾ 0. </para> <example> - <title>Ukázka <function>Str_repeat</function></title> + <title>Ukázka <function>str_repeat</function></title> <programlisting role="php"> echo str_repeat ("-=", 10); </programlisting> @@ -2379,7 +2365,7 @@ <refentry id="function.strrev"> <refnamediv> <refname>strrev</refname> - <refpurpose>Reverse a string</refpurpose> + <refpurpose>Obrátit øetìzec</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2390,7 +2376,7 @@ </funcprototype> </funcsynopsis> <para> - Returns <parameter>string</parameter>, reversed. + Vrací <parameter>string</parameter> v opaèném poøadí. </para> </refsect1> </refentry> @@ -2398,9 +2384,7 @@ <refentry id="function.strrpos"> <refnamediv> <refname>strrpos</refname> - <refpurpose> - Find position of last occurrence of a char in a string - </refpurpose> + <refpurpose>Najít pozici posledního výskytu znaku v øetìzci</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2412,32 +2396,29 @@ </funcprototype> </funcsynopsis> <para> - Returns the numeric position of the last occurrence of - <parameter>needle</parameter> in the - <parameter>haystack</parameter> string. Note that the needle in - this case can only be a single character. If a string is passed - as the needle, then only the first character of that string will - be used. + Vrací èíselnou pozici posledního výskytu <parameter>needle</parameter> v + øetìzci <parameter>haystack</parameter>. <parameter>needle</parameter> mù¾e + být jen jeden znak dlouhá. Pokud obsahuje více znakù, pou¾ije se první z + nich. </para> <para> - If <parameter>needle</parameter> is not found, returns false. + Pokud <parameter>needle</parameter> nenajde, vrací <literal>false</literal>. <note> <para> - It is easy to mistake the return values for "character found at - position 0" and "character not found". Here's how to detect - the difference: + Návratové hodnoty "znak nalezen na pozici 0" a "znak nenalezen" se dají + snadno zamìnit. Tady je návod, jak zjistit tento rozdíl: <informalexample> <programlisting role="php"> -// in PHP 4.0b3 and newer: -$pos = strrpos ($mystring, "b"); -if ($pos === false) { // note: three equal signs - // not found... +// v PHP 4.0b3 a novìj¹ích: +$pos = strpos ($mystring, "b"); +if ($pos === false) { // tøi rovnítka + // nenalezeno... } -// in versions older than 4.0b3: -$pos = strrpos ($mystring, "b"); +// ve verzích star¹ích ne¾ 4.0b3: +$pos = strpos ($mystring, "b"); if (is_string ($pos) &amp;&amp; !$pos) { - // not found... + // nenalezeno... } </programlisting> </informalexample> @@ -2445,13 +2426,15 @@ </note> </para> <para> - If <parameter>needle</parameter> is not a string, it is converted - to an integer and applied as the ordinal value of a character. + Pokud <parameter>needle</parameter> není øetìzec, pøevede se na integer a + pou¾ije se jako XXX ordinal hodnota znaku. </para> <para> - Viz také <function>strpos</function>, - <function>strrchr</function>, <function>substr</function>, - <function>stristr</function>, and <function>strstr</function>. + Viz také: <function>strpos</function>, + <function>strrchr</function>, + <function>substr</function>, + <function>stristr</function> a + <function>strstr</function>. </para> </refsect1> </refentry> @@ -2459,9 +2442,7 @@ <refentry id="function.strspn"> <refnamediv> <refname>strspn</refname> - <refpurpose> - Find length of initial segment matching mask - </refpurpose> + <refpurpose>Zjistit délku úvodního segmentu odpovídajícího masce</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2473,22 +2454,21 @@ </funcprototype> </funcsynopsis> <simpara> - Returns the length of the initial segment of - <parameter>str1</parameter> which consists entirely of characters - in <parameter>str2</parameter>. + Vrací úvodního segmentu <parameter>str1</parameter>, který se skládá + výhradnì ze znakù v <parameter>str2</parameter>. </simpara> <para> <informalexample> <programlisting role="php"> -strspn ("42 is the answer, what is the question ...", "1234567890"); +strspn ("42 je odpovìï, co je otázka...", "1234567890"); </programlisting> <para> - will return 2 as result. + vrátí 2. </para> </informalexample> </para> <simpara> - Viz také <function>strcspn</function>. + Viz také: <function>strcspn</function>. </simpara> </refsect1> </refentry> @@ -2496,7 +2476,7 @@ <refentry id="function.strstr"> <refnamediv> <refname>strstr</refname> - <refpurpose>Find first occurrence of a string</refpurpose> + <refpurpose>Najít první výskyt øetìzce</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2508,37 +2488,38 @@ </funcprototype> </funcsynopsis> <para> - Returns all of <parameter>haystack</parameter> from the first - occurrence of <parameter>needle</parameter> to the end. + Vrací èást <parameter>haystack</parameter> od prvního výskytu + <parameter>needle</parameter> do konce. </para> <para> - If <parameter>needle</parameter> is not found, returns false. + Pokud <parameter>needle</parameter> nenajde, vrací <literal>false</literal>. </para> <para> - If <parameter>needle</parameter> is not a string, it is converted - to an integer and applied as the ordinal value of a character. + Pokud <parameter>needle</parameter> není øetìzec, pøevede se na integer a + pou¾ije se jako XXX ordinal hodnota znaku. </para> <para> <note> <para> - Note that this function is case-sensitive. For - case-insensitive searches, use <function>stristr</function>. + Pozn.: tato funkce je case-sensitive. Pro case-insensitive hledání + pou¾ijte <function>stristr</function>. </para> </note> </para> <para> <example> - <title>Ukázka <function>Strstr</function></title> + <title>Ukázka <function>strstr</function></title> <programlisting role="php"> $email = 'sterling@designmultimedia.com'; $domain = strstr ($email, '@'); -print $domain; // prints @designmultimedia.com +print $domain; // vytiskne @designmultimedia.com </programlisting> </example> </para> <para> - Viz také <function>stristr</function>, - <function>strrchr</function>, <function>substr</function>, and + Viz také: <function>stristr</function>, + <function>strrchr</function>, + <function>substr</function> a <function>ereg</function>. </para> </refsect1> @@ -2554,8 +2535,8 @@ <funcsynopsis> <funcprototype> <funcdef>string <function>strtok</function></funcdef> - <paramdef>string <parameter>token</parameter></paramdef> - <paramdef>string <parameter>string</parameter></paramdef> + <paramdef>string <parameter>arg1</parameter></paramdef> + <paramdef>string <parameter>arg2</parameter></paramdef> </funcprototype> </funcsynopsis> <para> @@ -2564,7 +2545,7 @@ could tokenize this string into its individual words by using the space character as the token. <example> - <title>Ukázka <function>Strtok</function></title> + <title>Ukázka <function>strtok</function></title> <programlisting role="php"> $string = "This is an example string"; $tok = strtok ($string," "); @@ -2576,14 +2557,7 @@ </example> </para> <para> - Pozn.: Pouze první volání <function>strtok</function> pou¾ívá - <parameter>string</parameter>. V¹echna následná volání - <function>strtok</function> potøebují pouze <parameter>token</parameter>, - proto¾e <function>strtok</function> si pamatuje, kde v souèasném - <parameter>string</parameter> je. Pokud chcete zaèít znovu, nebo tokenizovat - nový øetìzec, staèí zavolat znovu <function>strtok</function> s argumentem - <parameter>string</parameter>, èím¾ ji inicializujete. - Pozn.: Do argumentu + Note that only the first call to strtok uses the string argument. Every subsequent call to strtok only needs the token to use, as it keeps track of where it is in the current string. To start over, or to tokenize a new string you simply call strtok with the @@ -2597,7 +2571,7 @@ evaluates to false in conditional expressions. </para> <para> - Viz také <function>split</function> and + Viz také: <function>split</function> a <function>explode</function>. </para> </refsect1> @@ -2617,16 +2591,15 @@ </funcprototype> </funcsynopsis> <para> - Vrátí <parameter>string</parameter> se v¹emi abecedními znaky zmìnìnými na - malá písmena + Vrací <parameter>string</parameter> se v¹emi alfabetickými znaky zmìnìnými + na malá písmena. </para> <para> - Pozn.: co je 'abecední' je dáno aktuálním místním nastavením. Napøíklad ve - standardním místním nastavení "C" se znaky jako pøehlasované a (Ä) - nepøevedou. + Pozn.: co je 'alfabetický' je dáno aktuálním místním nastavením. Napøíklad + ve standardním "C" locale se znaky jako pøehlasované a (Ä) nepøevedou. </para> <example> - <title>Ukázka <function>Strtolower</function></title> + <title>Ukázka <function>strtolower</function></title> <programlisting role="php"> $str = "Mary Had A Little Lamb and She LOVED It So"; $str = strtolower($str); @@ -2634,7 +2607,8 @@ </programlisting> </example> <para> - Viz také <function>strtoupper</function> a <function>ucfirst</function>. + Viz také: <function>strtoupper</function> a + <function>ucfirst</function>. </para> </refsect1> </refentry> @@ -2653,12 +2627,12 @@ </funcprototype> </funcsynopsis> <para> - Vrátí <parameter>string</parameter> se v¹emi abecedními znaky zmìnìnými na - velká písmena. + Vrací <parameter>string</parameter> se v¹emi alfabetickými znaky zmìnìnými + na velká písmena. </para> <para> - Pozn.: co je 'abecední' je dáno aktuálním místním nastavením. Napøíklad ve - standardním místním nastavení "C" se znaky jako pøehlasované a (ä) nepøevedou. + Pozn.: co je 'alfabetický' je dáno aktuálním místním nastavením. Napøíklad + ve standardním "C" locale se znaky jako pøehlasované a (ä) nepøevedou. </para> <example> <title>Ukázka <function>strtoupper</function></title> @@ -2669,7 +2643,8 @@ </programlisting> </example> <para> - Viz také <function>strtolower</function> a <function>ucfirst</function>. + Viz také: <function>strtolower</function> a + <function>ucfirst</function>. </para> </refsect1> </refentry> @@ -2692,8 +2667,8 @@ </funcprototype> </funcsynopsis> <para> - Tato funkce nahradí v¹echny výskyty argumentu <parameter>needle</parameter> - v <parameter>haystack</parameter> argumentem <parameter>str</parameter>. + Tato funkce nahradí v¹echny výskyty <parameter>needle</parameter> v argumentu + <parameter>haystack</parameter> argumentem <parameter>str</parameter>. Pokud nepotøebujete slo¾itá pravidla pro nahrazování, mìli byste v¾dy pou¾ít tuto funkci místo <function>ereg_replace</function>. </para> @@ -2710,12 +2685,12 @@ </para> <note> <para> - <function>str_replace</function> byla pøidána v PHP 3.0.6, ale nefungovala - správnì a¾ do PHP 3.0.8. + Funkce <function>str_replace</function> byla pøidána v PHP 3.0.6, ale a¾ + do verze PHP 3.0.8 fungovala ¹patnì. </para> </note> <para> - Viz také <function>ereg_replace</function> and + Viz také: <function>ereg_replace</function> a <function>strtr</function>. </para> </refsect1> @@ -2724,7 +2699,7 @@ <refentry id="function.strtr"> <refnamediv> <refname>strtr</refname> - <refpurpose>Nahradit urèité znaky</refpurpose> + <refpurpose>Pøelo¾it urèité znaky</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -2738,7 +2713,7 @@ </funcsynopsis> <para> Tato funkce upraví <parameter>str</parameter> tak, ¾e v¹echny výskyty - v¹ech znakù ve <parameter>from</parameter> nahradí odpovídajícími znaky v + v¹ech znakù ve <parameter>from</parameter> pøelo¾í na odpovídající znaky v <parameter>to</parameter> a vrátí výsledek. </para> <para> @@ -2774,7 +2749,7 @@ </simpara> </note> <para> - Viz také <function>ereg_replace</function>. + Viz také: <function>ereg_replace</function>. </para> </refsect1> </refentry> @@ -2797,7 +2772,7 @@ </funcprototype> </funcsynopsis> <para> - <function>substr</function> vrátí èást argumentu <parameter>string</parameter> + <function>substr</function> vrací èást argumentu <parameter>string</parameter> urèenou argumenty <parameter>start</parameter> a <parameter>length</parameter>. </para> <para> @@ -2854,7 +2829,8 @@ </informalexample> </para> <para> - Viz také <function>strrchr</function> a <function>ereg</function>. + Viz také: <function>strrchr</function> a + <function>ereg</function>. </para> </refsect1> </refentry> @@ -2874,7 +2850,7 @@ </funcprototype> </funcsynopsis> <para> - <function>substr_count</function> vrátí poèet výskytù øetìzce + <function>substr_count</function> vrací poèet výskytù øetìzce <parameter>needle</parameter> v øetìzci <parameter>haystack</parameter> string. </para> @@ -2883,7 +2859,7 @@ <example> <title>Ukázka <function>substr_count</function></title> <programlisting> -print substr_count("This is a test", "is"); // vytiskne 2 +print substr_count("This is a test", "is"); // prints out 2 </programlisting> </example> </para> @@ -2909,11 +2885,11 @@ </funcprototype> </funcsynopsis> <para> - <function>substr_replace</function> nahradí èást øetìzce + <function>substr_replace</function> nahrazuje èást øetìzce <parameter>string</parameter> ohranièenou argumenty <parameter>start</parameter> a (volitelnì) <parameter>length</parameter> øetìzcem v argumentu - <parameter>replacement</parameter>. Vrátí výsledek. + <parameter>replacement</parameter>. Vrací výsledek. </para> <para> Pokud je <parameter>start</parameter> pozitivní, náhrada zaène na @@ -2935,7 +2911,7 @@ </para> <para> <example> - <title>Ukázka <function>Substr_replace</function></title> + <title>Ukázka <function>substr_replace</function></title> <programlisting role="php"> &lt;?php $var = 'ABCDEFGH:/MNRPQR/'; @@ -2985,8 +2961,8 @@ </funcprototype> </funcsynopsis> <para> - Tato funkce odstraní netisknutelné znaky ze zaèátku a konce øetìzce a - vrátí øetìzec bez tìchto znakù. Netisknutelné znaky, které se v souèasnosti + Tato funkce odstraòuje netisknutelné znaky ze zaèátku a konce øetìzce a + vrací øetìzec bez tìchto znakù. Netisknutelné znaky, které se v souèasnosti odstraòují, jsou: "\n", "\r", "\t", "\v", "\0", a mezera. </para> <para> @@ -3018,7 +2994,7 @@ Napøíklad ve standardním "C" locale se znaky jako pøehlasované a (ä) nepøevedou. <example> - <title>Ukázka <function>Ucfirst</function></title> + <title>Ukázka <function>ucfirst</function></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 @@ -3102,12 +3078,12 @@ </funcsynopsis> <para> Zaláme øetìzec <parameter>str</parameter> na sloupci urèeném (volitelným) - argumentem <parameter>break</parameter> parameter. + argumentem <parameter>break</parameter>. </para> <para> Pokud není zadán argument <parameter>width</parameter> nebo <parameter>break</parameter>, <function>wordwrap</function> automaticky - zaláme øádky øetìzce na sloupci 75 znakem '\n' (newline). + zaláme øádky øetìzce na sloupci 75 znakem '\n' (konec øádku). </para> <para> Pokud má argument <parameter>cut</parameter> hodnotu 1, øetìzec se na @@ -3132,7 +3108,7 @@ </example> </para> <para> - This example would display: + Tato ukázka by zobrazila: </para> <para> <informalexample> @@ -3167,7 +3143,7 @@ </informalexample> </para> <para> - Viz také <function>nl2br</function>. + Viz také: <function>nl2br</function>. </para> </refsect1> </refentry>
« previous php.doc (#969334178) next »