<?php $input = ' tekst met te veel spaties'; $output = preg_replace('/\s\s+/', ' ', $input); var_dump($output);
You have javascript disabled. You will not be able to edit any code.