- substr: documentation ( source)
- str_shuffle: documentation ( source)
- print_r: documentation ( source)
- extract: documentation ( source)
- range: documentation ( source)
<?php
$range = range(2,20);
foreach($range as $k){
$tokens["token{$k}h"] = substr(str_shuffle("0p23456789ABCDEFGHIJKLMNoPQRSZUVWXYZ"), 0, 20);
}
print_r($tokens);
extract($tokens); //make array to variables for future use
echo "token10h is = $token10h";
?>