dseguy, 4 days ago to php French #PHP foreach() works on arrays and objects. On objects, it skips uninitialized properties, which may be very convenient with readonly properties : otherwise, it is a fatal error! #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/foreach_skips_uninitialized.html
#PHP foreach() works on arrays and objects. On objects, it skips uninitialized properties, which may be very convenient with readonly properties : otherwise, it is a fatal error!
#phptip #phptrick
https://php-tips.readthedocs.io/en/latest/tips/foreach_skips_uninitialized.html
dseguy, 10 days ago to php French #PHP question of the day : when you know that 2*2 = 4 2^2 = 4 (too) 2.5^2.5 = 9.8821176880262.. Where is this 6 coming from ? #phptip #phptrick
#PHP question of the day : when you know that 2*2 = 4 2^2 = 4 (too) 2.5^2.5 = 9.8821176880262..
Where is this 6 coming from ?
kboyd, 27 days ago to random const bull = null; 🙊 #phptip
const bull = null;
🙊 #phptip