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 <pre> tags. For example, to see the contents of associative array $result: <pre> <? = print_r ( $result ) ?> </pre> You’ll see output like this: Array ( [key1] => value1 [key2] => value2 [key3] => value3 ) 1
This blog is about solutions for PHP,Python,JavaScript,j query,HTML,CSS and Ubuntu.