Friday, 17 August 2012

PHP Print array - how to show contents of an array

You can simple show entire contents of an array by callind print_r function:print_r($theArray); $arrayContents = print_r($theArray,true); Second example show how you can grab output to a variable to parse it or store somewhere (lika a file)

No comments:

Post a Comment