abenamer-zz / php-text-statistics

Automatically exported from code.google.com/p/php-text-statistics
0 stars 0 forks source link

Add or sub syllable #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
In your code, the syllable_count function, there is an array of 
$arrSubSyllables, and below is the caculation code:

foreach ($arrSubSyllables as $strSyllable) {
    $intSyllableCount -= preg_match('~' . $strSyllable . '~', $strWord);
}

what is the meaning of '~'? It seems you didn't use "//" as standard 
delimiter. 

Original issue reported on code.google.com by yuanzho...@gmail.com on 18 May 2009 at 4:01

GoogleCodeExporter commented 9 years ago
You can use pretty much any character as a delimiter. No idea why I used the 
tilde.

Original comment by addedby...@gmail.com on 2 Dec 2010 at 6:09