<?php $strings = [ 'iPhone 7 plus - space grey (New)', 'iPhone6 plus, brand new, (Used)', 'iPhone 5 ( black)', ]; var_export(preg_replace('~ ?[-,(].*~', '', $strings));
You have javascript disabled. You will not be able to edit any code.