<?php $strings = [ 'Stack Over Flow Abcpqr (UR)', 'Fluency in English Conversation Defklmno (1WIR)', 'English Proficiency GHI (2WIR)', 'Testing ADG (3WIR)', ]; foreach ($strings as $string) { echo json_encode(preg_split('/ (?=(?:\S+ )?\()/', $string)) . "\n"; }
You have javascript disabled. You will not be able to edit any code.