$hey = 'stringand8723984';
if (preg_match('/^[a-zA-Z0-9]+$/', $hey))
{
return true;
}
else
{
return false;
}
I am trying to better understand regex and I understand the "[a-zA-Z0-9]" part is letters and numbers capital and small case. But what is "+$" and "^"
Would help a lot... tried reading documentation but it was confusing.