If I want to send a private message to a user like such /pm Derek test
How would I split Derek (to be the person I send it to) and test (as the message I send to the person)
This is what I have thus far (just an example but it's the same concept):
<?php $m = "/pm Derek test"; echo preg_replace("#/pm (.*?)+(.*?)#s", "\\1", $m); ?>
all that outputs is "Derek test"
any suggestions?