Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to Print Multidimensional Associative Array in PHP using loop with example?

Foreach Loop with Multidimensional Associative Array :-
Multidimensional Associative Array is used to store using foreach loop arrays value where pairs arrays value can be an integer or string. It is always used to store data in group or pair relation.
ex:-

OUTPUT

for Loop with Multi D associative Array in PHP
ex:-

OUTPUT