Location: PHPKode > scripts > Dump To Array > dump-to-array/example.php
<?php

include ("DumpToArray.class.php");

// building as complex array to test the functions
$arr3 = array("key3a" => "val3a", "key3b" => "val3b", "key3c" => "val3c"); $arr2 =
array('array2arr' => $arr3, "key2a" => "val2a", "key2b" => "val2b", "key2c" =>
"val2c"); $arr = array("key1a" => "val1a", "key1b" => "val1b", "array1arr" => $arr2,
"key1c" => "bal1c"); //Actually using the function
$dump = new DumpToArray;

echo $dump->DumpArray($arr);

?>
Return current item: Dump To Array