Skip to content

Instantly share code, notes, and snippets.

View wrilben's full-sized avatar
🎯
Focusing

Benedict Asamoah wrilben

🎯
Focusing
View GitHub Profile
@wrilben
wrilben / GenerateRandomTransactionIds.php
Last active December 21, 2017 10:14
Generate Random Transaction Ids for your projects
<?php
##Author Benedict Asamoah
function generateTransactionID ($data){
## Get passed card information to string
$string = $data;
## Create an array
$store = array();
## create a loop that runs four times
for ($x = 0; $x <= 4; $x++) {
## Get random positions each time the loop is runned