phpday 2027 - Call for Papers

ArrayIterator::natcasesort

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

ArrayIterator::natcasesort — Sort entries naturally, case insensitive

Увага

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

Опис

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

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

Зауваження:

Якщо два члени порівняння однакові, їхній порядок зберігається. До PHP 8.0.0, їхній відносний порядок у впорядкованому масиві був невизначеним.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Завжди повертає true.

Журнал змін

Версія Опис
8.6.0 This method has been deprecated.
8.3.0 The return type is true now; previously, it was bool.

Прогляньте також

+add a note

User Contributed Notes

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