Store Float As Index

no-email (Damien Seguy), Damien Seguy
Sun, 28 Apr 2024 00:00:00 +0000

PHP doesn't allow float as index in arrays.
It is possible to use them as such by casting them to string. Later, type juggling will allow adding to another float, seamlessly.