DEV Community

Discussion on: PHP foreach() loop for indexed and associative arrays

Collapse
 
peter279k profile image
peter279k

Since php-5.4 is released, using the short array syntax to replace array syntax.

I recommend using the [] to replace array syntax :).

Collapse
 
hrishikesh1990 profile image
hrishikesh1990

Hey Peter, thanks for you suggestion. I shall definitely try it out. :)