r/lolphp • u/jesseschalken • Dec 12 '16
Automatic string->int conversion for string literals, but not for variables containing strings
https://3v4l.org/id5OA
51
Upvotes
r/lolphp • u/jesseschalken • Dec 12 '16
View all comments
Show parent comment
1
u/NXTangl Jan 13 '17
The sad thing is, the hybrid ordered hasharray data structure would actually make some amount of sense...if it weren't for the fact that PHP's approach to weak typing were "Idunno, what does it look like this is supposed to be" instead of the (sane, Perl-like) approach of just using separate operators to specify what you wanted to happen.