PHP sort()

Jmnote (토론 | 기여)님의 2022년 1월 24일 (월) 14:42 판 (→‎개요)

1 개요

PHP sort()
  • 배열을 정렬하는 PHP 함수
  • 알고리즘: 퀵소트
<?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 }}