Masking string

Hi, is it possible for someone to help me apply a mask to my string $payment_info

My skills are low but am good at following instructions. I will post bellow the line with the string.

echo '<tr><td>'.
number_format($request['bits']).' '.$lang['l_337'].
'</td><td>'
.$request['crypto'].' '.strtoupper($request['coin']).
' <i class="fa fa-exclamation-circle fa-fw text-info" data-toggle="tooltip" data-placement="top" title="$'.
number_format($request['amount'], 2).
'"></i></td><td><a href="'.
paymentMethod($request['method'], 1, $request['coin'], $request['payment_info']).
'" target="_blank" data-toggle="tooltip" data-placement="top" title="'.
paymentMethod($request['method']).
'">'.
$request['payment_info'].
'</a></td><td>'.
date('d M Y - H:i', $request['time']).
'</td></tr>';

Thanks in advance, any help will be appreciated.

What do you mean by “mask”?

Do you mean to hide this info from the user’s browser? If yes, just use SESSION array instead of passing it thru a POST. You could create a secret unique GUID and use that, then when posted, it would look up the GUID and replace it with the correct data. Not sure what you are asking for.

If you have a user logged into your site, their payment info would be in the database under their user ID. Then, you don’t need to pass it in a POST, you already have that data and would just use their ID to handle it.
Again, this depends on what your needs are. Please explain a bit more…

Sponsor our Newsletter | Privacy Policy | Terms of Service