mirror of
https://github.com/php/doc-it.git
synced 2026-04-26 16:58:13 +02:00
2769b12f1b
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@314558 c90b9560-bf6c-de11-be94-00142212c4b1
76 lines
2.4 KiB
XML
76 lines
2.4 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.soundex" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>soundex</refname>
|
|
<refpurpose>Calcola la chiave soundex di una data stringa</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descrizione</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>soundex</methodname>
|
|
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Calcola la chiave soundex di <parameter>str</parameter>.
|
|
</para>
|
|
<para>
|
|
Le chiavi soundex hanno la caratteristica di essere simili per
|
|
parole con pronuncia similare, e pertanto possono essere utilizzate
|
|
per semplificare le ricerche in archivi nei casi in cui si conosce la pronuncia
|
|
ma non la sillabazione. Questa funzione soundex restituisce una stringa di 4 caratteri
|
|
di cui il primo è una lettera.
|
|
</para>
|
|
<para>
|
|
Questa particolare funzione soundex è stata descritta da Donald Knuth
|
|
in "The Art Of Computer Programming, vol. 3: Sorting And
|
|
Searching", Addison-Wesley (1973), pp. 391-392.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Esempio di uso di Soundex</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
soundex("Euler") == soundex("Ellery"); // E460
|
|
soundex("Gauss") == soundex("Ghosh"); // G200
|
|
soundex("Hilbert") == soundex("Heilbronn"); // H416
|
|
soundex("Knuth") == soundex("Kant"); // K530
|
|
soundex("Lloyd") == soundex("Ladd"); // L300
|
|
soundex("Lukasiewicz") == soundex("Lissajous"); // L222
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Vedere anche
|
|
<function>levenshtein</function>,
|
|
<function>metaphone</function> e
|
|
<function>similar_text</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
|
|
-->
|