PHP

PHP Menu

PHP

soundex() Function - Definition, Syntax, Parameters, Examples

Definition

The soundex() function calculates the soundex key(a four character long alphanumeric string that represent English pronunciation of a word) of a string.

Syntax

soundex(string)

Parameters

Parameter Description
string Required. Specifies the string to check.

Example

<?php
$hello = "Hello"; echo soundex($hello);

Introduction

PHP Basics

PHP Advance

PHP OOP

PHP Functions and Methods