asort
reactphp/event-loop
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sort an array in ascending order and maintain index association
asort
(array &
$array
,
int $flags
=
SORT_REGULAR
):
bool
if (!
$this
->
sorted
) {
$this
->
sorted
=
true
;
\asort
(
$this
->
schedule
);
}
return
\reset
(
$this
->
schedule
);
src/Timer/Timers.php
if (!
$this
->
sorted
) {
$this
->
sorted
=
true
;
\asort
(
$this
->
schedule
);
}
$time
=
$this
->
updateTime
();
src/Timer/Timers.php