dseguy, French
@dseguy@phpc.social avatar

allows a constant to be called 'int', but it will then mistake it with the (int) cast operator as soon as it is between parenthesis.

The code below is a fatal error!

And this applies to all the other cast operators.

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

arnan,

@dseguy even if you define it properly and/or capitalize int (INT)?

dseguy,
@dseguy@phpc.social avatar

@arnan cast operators are case insensitive, so I expect var_dump(INT) to also yield a compile error.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • cubers
  • DreamBathrooms
  • ethstaker
  • magazineikmin
  • thenastyranch
  • ngwrru68w68
  • Youngstown
  • slotface
  • modclub
  • love
  • kavyap
  • everett
  • InstantRegret
  • mdbf
  • megavids
  • khanakhh
  • tacticalgear
  • osvaldo12
  • rosin
  • tester
  • GTA5RPClips
  • cisconetworking
  • Durango
  • Leos
  • normalnudes
  • anitta
  • provamag3
  • JUstTest
  • All magazines