Check if a string starts with certain values
<p>I am working on a chat script, and I am trying to check if the entered value contains /staff at the start of the string $message, if it does contain /staff then I would like it to split the $message into two variables $type (which would just have the value of staff) and $message (containing everything after /staff).</p>

<p>I've tried</p>

<pre><code>if(strstr($message, '/staff')){
}
</code></pre>

<p>But this checks the ENTIRE variable, not the first 6 characters. So if the $message contained "Hey, try out /staff", it would save it as a staff $type message.</p>
