Array ( [a] => apple [b] => banana [c] => Array (  => x  => y  => z ) )
php print array
// raw array output
// the above well-formattedecho'<pre>'; print_r($array); echo'</pre>';
// more details like datatype and length
// output that PHP understands
// by foreach loopforeach($arras$key=>$value)
echo$key, '=>', $value; // $value must be convertible to string
In this page (written and validated by A. Gawali) you learned about
. What's Next? If you are interested in completing PHP tutorial, we encourage you simply to start here: PHP Tutorial.
Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue: email@example.com.