PHP

PHP Menu

PHP

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

Definition

The metaphone() function calculates the metaphone key(how a string sounds if said by an English speaking person) of a string.

Syntax

metaphone(string, length)

Parameters

Parameter Description
string Required. Specifies the string to check.
length Optional. Specifies the maximum length of the metaphone key.

Example

<?php
echo metaphone("World");

Introduction

PHP Basics

PHP Advance

PHP OOP

PHP Functions and Methods