I have some values:
$data1
$data2
$data3
I want to concatenate these variables and then perform an md5 calculation how is it done??
I have some values:
$data1
$data2
$data3
I want to concatenate these variables and then perform an md5 calculation how is it done??
If your values are strings it's pretty easy
md5($data1 . $data2 . $data3);
If they are not string you need to first convert them.
If your vars are no simple strings, but maybe objects or arrays you could go like this:
md5(serialize($data1 . $data2 . $data3));