코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>PHP Built In Function</title> </head> <body> <?php $arr = array(1, 2, 3, 4, 5); shuffle($arr); // 배열 요소를 무작위로 재배치함. for($i = 0; $i < count($arr); $i++){ echo $arr[$i].", "; } ?> </body> </html>