dseguy, 2 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