<?php $string = "My text has so much whitespace Plenty of spaces and tabs"; echo preg_replace('/\v(?:[\v\h]+)/', '', $string);
You have javascript disabled. You will not be able to edit any code.