This post describes how to compare variables that have integers using PHP.
To properly compare variables in PHP, we are taking a look at the
intval function. If you try to compare variables without this function, you can run into troubles, such as your script returning that they are NOT the same.
echo 'it's the same';