<?php $str = 'foobarrrr'; $str = preg_replace('/(.)\1+/s', '$1', $str); echo $str; // fobar ?>
About me
I am a PHP developer and consultant based in London, England. I've been working with PHP and associated technologies for around 8 years, this site is an attempt to bring all my coding related stuff together.