\MetaGenerator
Static MetaGeneratorClass to generate keywords from whereever you need.
Returns a lowercase string with keywords ordered by occurance in content seperated with comma's
Use MetaGenerator::generateKeywords($string);
- Author: Martijn van Nieuwenhoven
Synopsis
class MetaGenerator
{
- // methods
- public static void generateKeywords()
- private static void calculateKeywords()
- private static void cmp()
- private static void str_word_count_utf8()
Methods
private
- calculateKeywords()
- cmp() — Sort array by count value
- str_word_count_utf8() — Word count for UTF8 /* Found in: http://www.php.net/%20str_word_count#85592 /* The original mask contained the apostrophe, not good for Meta keywords: /* "/\p{L}[\p{L}\p{Mn}\p{Pd}'\x{2019}..."
public
- generateKeywords() — Extract Keywords Returns a lowercase string with keywords ordered by occurance in content seperated with comma's