<?php $string = '{width:100, max-heigth:300, min-height:200}'; $pattern = '/:(\S)/'; $replacement = ': $1'; var_dump(preg_replace($pattern, $replacement, $string));
You have javascript disabled. You will not be able to edit any code.