• PHP Video Tutorials

PHP - Function Soundex



Syntax

string soundex ( string $str )

Definition and Usage

It is used to calculate the soundex key of string

Return Values

It returns the soundex key as a string

Parameters

Sr.No Parameters & Description
1

string

It contains the information about input string

Example

Try out the following example

<?php
   $input = "tutorialspoint";
   echo soundex($input);
?>

This will produce following result −

T364
php_function_reference.htm
Advertisements