<?php $str = 'Hello how are you<br>Foo bar hello'; $array = preg_split( '/(?:\s*(?<=\s))|(<br>)/', $str, -1, PREG_SPLIT_DELIM_CAPTURE); var_dump( $array);
You have javascript disabled. You will not be able to edit any code.