shortText function toggler in php

I often have to show a shortened version of a news item and then a link to show the entire news article or whatever. Here’s a way to get that short text! [code lang=”php”] function shortText($text, $length) { if( strlen($text) > $length ) return substr(preg_replace(“/(]*>)/”, “”, $text), 0, $length).”…”; return Read more…

By Andrew Odendaal, ago

1 December 2009

The first of December and it only feels like it’s February! This year has really flown by quicker than the last! I’m quite excited that it is already December, as there are a lot of really interesting things that are coming my/your way over the course of the next few Read more…

By Andrew Odendaal, ago

Adidas

I came across this site today: http://www.adidas.com/campaigns/adidasdfb/content/locale/com/?strcountry_adidascom=uk It is a game made and run on the adidas site.. Play it, it’s quite cool. Nice flash site to whoever made it!

By Andrew Odendaal, ago