Can anyone help me with a solution that pulls the position and value of a random character from a given string using PHP. For example I have a a string variable $string = \
Just for fun:
$chars = preg_split('//', $string, -1, PREG_SPLIT_NO_EMPTY); echo $string[array_rand($chars)];