코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>PHP Built In Function</title> </head> <body> <?php $arr = array(3, 2, 7, 6, 4); sort($arr); // 배열 정렬. for($i = 0; $i < count($arr); $i++){ echo $arr[$i].", "; } ?> </body> </html>