PHP 8.3.22 Released!

Voting

: min(zero, seven)?
(Example: nine)

The Note You're Voting On

aleczapka at gmx dot net
20 years ago
One remark regarding array_sorter class.
It won't work correctly with eg. dates from mysql like 20041206105350, cause you can't convert such number into integer. To fix it remove intval() from the code. If the variable is a number it will work without converting this to int anyways. Here is the fix.

<?php
....
if (
$a == $b)
return
0;
if (
$this->sasc)
return (
$a > $b) ? 1 : -1;
else
return (
$a > $b) ? -1 : 1;
...
?>

<< Back to user notes page

To Top