So, i want to use a formula to match a string.
ex.
Code: Select all
$key=Q1D
$token = "Q1D36FL1HSAWLSTK8QL4B2Z27PRNYCPT5SNTXGQQAEDY32M9PY4FQKQ8OW5X81PHBAPQR9MA";
$token[0] = $a1;
$token[1] = $a2;
$token[3] = $a3;
$formula = "$a1.$a2.$a3"; <--[u]FETCHED FROM MYSQL[/u]
$key==$formula;
Instead I want: Q1D
i want to define each character in $token as a variable, and use $formula to turn into previous variable. Which will then compare $formula with $KEY
Thanks.