echo $Tail . ' ' .$Rego . "<BR>"; if (trim($Tail) === trim($Rego)){ echo 'correct'; $TailCheck = 1; } else { echo var_dump($Tail); }
My output is this
VH-ABC VH-ABF C:\wamp64\www\home\get-sector.php:88:string 'VH-ABC' (length=6)
Isn't it obvious that they are different?