<?php $str = 'hello world'; preg_match_all('/^(\w+)\s*(.*)$/', $str, $matches, PREG_SET_ORDER); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.