phpday 2027 - Call for Papers

ArrayIterator::natsort

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

ArrayIterator::natsort — Sort entries naturally

Uyarı

This function has been DEPRECATED as of PHP 8.6.0. Relying on this function is highly discouraged.

Açıklama

#[\Deprecated(since: '8.6')]
public function ArrayIterator::natsort(): true

Sort the entries by values using a "natural order" algorithm.

Bilginize:

İki üye karşılaştırıldığında eşitse bunların özgün sıralamadaki yerleri korunur. PHP 8.0.0 öncesinde sıralı dizideki göreli yerleri tanımsızdı.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Daima true döndürür.

Sürüm Bilgisi

Sürüm: Açıklama
8.6.0 This method has been deprecated.
8.3.0 The return type is true now; previously, it was bool.

Ayrıca Bakınız

+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top