Back to index

php5  5.3.10
Functions
php_metaphone.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 PHP_FUNCTION (metaphone)

Function Documentation

Definition at line 32 of file metaphone.c.

{
       char *str;
       char *result = 0;
       int str_len;
       long phones = 0;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len,
                                                   &phones) == FAILURE) {
              return;
       }

       if (metaphone((unsigned char *)str, str_len, phones, &result, 1) == 0) {
              RETVAL_STRING(result, 0);
       } else {
              if (result) {
                     efree(result);
              }
              RETURN_FALSE;
       }
}

Here is the call graph for this function: