Hi,
I am pretty new to PHP. I need to get PHP to recognize a particular variable for me based on certain characteristics of the variable. I have a variable that will be 10 characters. The first character will be a P and then 9 numeric numbers such as P12345678.
I need to get PHP to recognize the variable starts with P and has 9 numeric characters and if so, then it will call a specific function.
For example - the part I am stuck on is in the first line:
elseif($this->config->passtype === 'pc' and $username like P plus 9 numbers)
{
$extpassword = ($extpassword);
Does anyone know how to do this? It reminds me of the LIKE clause in SQL but I don't know if such a thing exists in PHP?
Thanks!