PHP sort()

Jmnote (토론 | 기여)님의 2022년 1월 24일 (월) 14:42 판 (→‎개요)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

PHP sort()
  • 배열을 정렬하는 PHP 함수
  • 알고리즘: 퀵소트
$arr = [11, 1, 12, 2];
sort($arr);
foreach($arr as $i) echo "$i ";
# 1 2 11 12

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}