soundex() function calculates the soundex key of str. This soundex function returns a string 4 characters long, starting with a letter.
Note: It creates the same key for similar sounding words.
Tip: metaphone() is more accurate than soundex(), because metaphone() knows the basic rules of English pronunciation.
[table caption=”” width=”100%” colwidth=”15%|15%|15%|55%” colalign=”left|left|left|left”]
Name, Required /Optional, Value Type, Description
string1, Required, String, The input string.
[/table]
Returns the soundex key as a string.
<?php $str = "Hi from tutorialmines!"; echo soundex($str); ?>
See below is the output of above code in web browser.
H165
App usage is growing steadily without showing any signs of slowing down. Hence, it is no surprise that mobile applications…
As the world has grown more digital, businesses have adapted themselves. An effectual adaptation includes online advertising. Offline advertising styles…
Step into a world where apps dance to the user's tune. Picture Instagram, a photo-sharing sensation that swept the globe.…
COVID-19 has led to a digitalization of lifestyle. As patients are taking their mental and physical health more seriously, healthcare…
Introduction WordPress, an immensely popular content management system (CMS), powers over 40% of the internet. What makes WordPress even more…
For moving companies trying to capture their market share amidst stiff competition, a tip or two about what they can…