سؤال

How can I divide a md5 function with a colon?

Currently I have this:

$ms = md5($transactionid:$secretkey);

But that code is invalid.

I can divide it with a "." but not a ":"?

هل كانت مفيدة؟

المحلول

$ms = md5($transactionid.':'.$secretkey);

You need to concatenate with .

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top