The below class shows my situation – I am not getting the right results.
class Test {
public static $API_KEY = 'B0gTFoDazzV7e1EgutQg';
public static $API_SECRET = 'S5axjxfvpO2uNPocdXE';
public function test(){
$a= self::$API_KEY.":".self::$API_SECRET;
$'B0gTFoDazzV7e1EgutQg:S5ddjxfvpO2uNPocdXE';
if ($a==$b){
echo "True";
echo var_dump($a);
echo var_dump($b);
} else {
echo "False";
echo strlen($a);
echo strlen($b);
echo var_dump($a);
echo var_dump($b);
}
}
}
$a= new Test;
This should be the same! It should be true…
This should be TRUE!! any ideas/?>
Your two strings are not the same…