An alternative to subst() that selects entire words rather than a specified number of characters. I used this on a recent project where I needed to create a meta tag description from text and HTML stored in a database. Uses PHP’s native str_word_count() function. function select_number_of_words($input,$number_of_words){ $output = ”; $input = strip_tags($input); $input = str_word_count($input,1); [...]
[26 Mar 2009]
UPDATE: Tweetdeck does, in fact, tell you whether someone’s updates are protected if you click on the user name and view his or her profile. It does not however do this at a glance. If you’re not listening from the CBC‘s Search Engine podcast, shame on you. It’s a kick ass show that looks at [...]
[23 Mar 2009]