title: How do I check if my string starts with a certain word in PHP?
body: <p>I'm trying to do some sort of license system.</p>
  
  <p>But there is diffrent kinds of licenses.
  There is a Personal, Team, and Admin license. The license looks like</p>
  
  <pre><code>&lt;License type&gt;-&lt;Randomly generated 50 characters string&gt;
  </code></pre>
  
  <p>EX:</p>
  
  <pre><code>Personal-imiY2cdnpL01EzbZWr2YWzukkJmC3K6BMQpZU2wgfsOehCruDr
  </code></pre>
  
  <p>But when it comes to the license checking, then I want to know what kind of license it is.
  So I just want to make a check like <code>(if $lincense startsWith("Personal")</code> etc</p>