Tag : way to print array php

2 ways of printing an array in php

We use echo statement in PHP to output the value of an expression like a single variable. While echo is much more useful, but it’s have some limitation to print array contents. For example, while debugging a script, we needs to see not just the value of an expression, but also its type and it’s index information. So, this type [...]