debug

Home debug

How to View and Debug PHP Arrays

Sometimes when coding or debugging in PHP, it’s helpful to see the entire contents of an array. An easy way to do this is with the print_r command. To make it more readable, wrap it in
 tags. For example,