I'm trying to do some sort of license system.
But there is diffrent kinds of licenses. There is a Personal, Team, and Admin license. The license looks like
<License type>-<Randomly generated 50 characters string>
EX:
Personal-imiY2cdnpL01EzbZWr2YWzukkJmC3K6BMQpZU2wgfsOehCruDr
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 (if $lincense startsWith("Personal")
etc
if (substr('Personal-imiY2cdnpL01EzbZWr2YWzukkJmC3K6BMQpZU2wgfsOehCruDr', 0, 8) == 'Personal')