Posts
Showing posts from September, 2007
PHP Function: Keyword Extract
- Get link
- X
- Other Apps
This is a great little php utility function is great for bloggers or for anyone looking to increase the keyword density on a site. The keyword extract function searches through a text string filtering out punctuation and common words to return a list of your most commonly used words. Links are then generated to search for these keyword possibilities on Google and to get keyword suggestions from Wordpot. let's go deeply and explore this function: download this zip file that contain the script. you can edit it with any PHP editor you want, for me i use notepad++ or PHP designer 2007 . open the file with the editor: you will find a comment block telling you how to use this script. for us we will talk about how it works. the name of our function is "keyword_extract" it takes a variable $text that contain the text you want to extract keywords from it. First line is used to convert the text lowercase state. the 2 next lines declare a string that contain all punctuations and ...