dseguy, French
@dseguy@phpc.social avatar

#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.

#phptip #phptrick

https://php-tips.readthedocs.io/en/latest/tips/store_float_as_index.html

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • hgfsjryuu7
  • Youngstown
  • rosin
  • InstantRegret
  • slotface
  • mdbf
  • PowerRangers
  • tsrsr
  • kavyap
  • khanakhh
  • vwfavf
  • tester
  • ngwrru68w68
  • modclub
  • ethstaker
  • cubers
  • Durango
  • everett
  • osvaldo12
  • tacticalgear
  • normalnudes
  • cisconetworking
  • GTA5RPClips
  • Leos
  • anitta
  • All magazines