I need to check if two strings (numbers) are the same. However if one of the strings has a leading zero, then all bets are off - it says they are equal:
$hospitalno1 = "64583";
$hospitalno2 = "064583";
if ($hospitalno1 <> $hospitalno2){
echo "Different";
}
How can I compare these two variables as strings rather than as numbers?