I need one solution for this script. I don't want to remove the first zero because I show the example code only. In case I have received zero in my random function. This is my script.
<?php 
$var1 = '0123456';
$var2 = '123456';
if($var1 == $var2){
    echo 'Equal';
} else{
    echo 'Not Equal';
}
?>
In here I get the output is Equal But I need Not Equal. I know these two values are same, But am working on OTP So it should not allow this method. How can I do this, any Idea?
 
     
    