PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $str = 'abcdefghigklmnoprstuvwxyz'; $arr = str_split($str); $sub_arr = array_rand($arr, 8); $res = []; foreach($sub_arr as $key){ $res[] = $arr[$key]; } shuffle($res); print_r($res);
Show:  
Copy Clear