<?php $strings = array( 'ABC 11.0x17 / 1x4 2x4 XYZ', 'ABC 12.1x18 / 2x4 3x4 XYZ', 'ABC DEF 12.1x19 / 3x4 4x4 XYZ', 'ABC DEF GHI A1 13x20 / 3x4 4x4 XYZ' ); foreach ($strings as $str) { $text = explode('x', $str, 2); $text = explode(' ', $text[1]); echo "$text[0]\n"; }
You have javascript disabled. You will not be able to edit any code.