I am creating password generator, I am dealing at the moment with array of special characters to transfer them into string. I have special characters saved in cvs file, using as array to slice based on how many special characters should be in password, then I want to make them string and concatenate with numbers and letters.
$list = './SpecialChar.csv';
$e = array_map('str_getcsv', file($list));
//$nRange telling how many characters should be slice
$nRange = $length-($numb*2)-$specialChar;
shuffle($e);
$s = array_slice($e,0,$nRange);
$sString = implode(" ",$s); //does not work
$sString = htmlentities(implode(" ",$s)); //does not work