$zhi =new_ddstrcode ();
echo UrlEncode ($zhi); This is not the same value as below.
Echo UrlEncode (New_ddstrcode ()); This value is not the same as above (this value is wrong)
Does anyone know why?
is the above 2 output values, the middle part actually will change
Look at the code above, so write, the function output must be the same bar!
It's okay, because this function is a random change of time! Didn't notice! The last code check out is the server time 10 minutes faster, resulting in decoding out garbled!
Reply content:
$zhi =new_ddstrcode ();
echo UrlEncode ($zhi); This is not the same value as below.
Echo UrlEncode (New_ddstrcode ()); This value is not the same as above (this value is wrong)
Does anyone know why?
is the above 2 output values, the middle part actually will change
Look at the code above, so write, the function output must be the same bar!
It's okay, because this function is a random change of time! Didn't notice! The last code check out is the server time 10 minutes faster, resulting in decoding out garbled!
Are you sure you generated the same string two times as you called it?
看上面图的代码,这样写,函数输出肯定一样的吧!
Of course not.