Coming from PERL I need help with a code translation to PHP. I'm trying to parse all the words in submitted text into an array. Each word is demarcated by white space (\s in PERL) before and behind. The code to do this in PERL is below. What's the equivalent in PHP?
<code>
$_ = $someText;
@a = /\s(.*?)\s/gsm;
</code>
thanks,
chris