Languages

Fsharp
ActionScript
xBase
Clean
GPSS
PureBasic
Sieve
Erlang
JOVIAL
Mercury
Linda
DataFlex
PostScript
FoxPro2
VFP
Cobol
Prolog
Jython
Awk
VisualBasic
JavaScript
Matlab
ASP
Haskell
Csharp
D
Smalltalk
Nemerle
Pixilang
Java
SQL
Python
ObjectPascal
Ruby
Perl
Pascal
Assembler
PHP
C
Functions  Add function  Users  Exit  Profile  About  ASCII Table  Our helpers

soundex in PHP

(PHP 4, PHP 5)

soundex — Calculate the soundex key of a string
Description
string soundex ( string $str )

Calculates the soundex key of str.

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.

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.

<?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
?>
Doing for this function is string
Add by Pancho
You can edit it here

Comment :


Frog Killer Caught in the Act

Photo of a Panamanian golden frog.

A killer has been caught in the act: the first before-and-after view of an infectious disease that led to an amphibian die-off has been released by the scientists who tracked it.

The results are published this week in the journal Proceedings of the National Academy of Sciences (PNAS).

Like a wave, incidence of the fungal disease that wipes out Central American frogs--chytridiomycosis--advances through the region's highlands at a rate of about 30 kilometers ...

More at http://www.nsf.gov/news/news_summ.jsp?cntn_id=117348&WT.mc_id=USNSF_51&WT.mc_ev=click


This is an NSF News item.

PycckaR
BepcuR


Articles
Articles


Library
Library


Downloads
Downloads

Google Chrome Golf 6
 © Internet, books, teachers and Rudevich Alexander brains.