top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Explain soundex() and metaphone() in PHP?

+1 vote
434 views
Explain soundex() and metaphone() in PHP?
posted Dec 14, 2017 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Hii

The soundex() function calculates the soundex key of a string.
The soundex() function can be used for spelling applications.

<?php
$str = "Assistance";
$str2 = "Assistants";

echo soundex($str);
echo "<br>";
echo soundex($str2);
?>

The metaphone() function calculates the metaphone key of a string.
The metaphone() function can be used for spelling applications.

<?php
$str = "Assistance";
$str2 = "Assistants";

echo metaphone($str);
echo "<br>";
echo metaphone($str2);
?>
answer Jan 8, 2020 by Siddhi Patel
Similar Questions
+1 vote

I recently upgraded the latest PHP driver and could do an "explain" query by using the "$explain" modifier when executing the query, however as of MongoDB 3.2 the operator was removed so this is no longer possible.

So my question is how can I do an explain query with the new driver and MongoDB 3.2?

...