What's the regex to use in preg_split in this example?
Example
<?$a='Word with white trailing spaces. ';
Output
Array(
[0] => 'Word ',
[1] => 'with ',
[2] => 'white ',
[3] => 'trailing ',
[3] => 'spaces. '
)
I've no idea in regex in php. I just need to minimize the code. Maybe someone could help me and explain a little bit about the answered regex