Skip to content

Instantly share code, notes, and snippets.

@oscar-broman
Created April 10, 2012 20:29
Show Gist options
  • Save oscar-broman/2354244 to your computer and use it in GitHub Desktop.
Save oscar-broman/2354244 to your computer and use it in GitHub Desktop.
<?php
foreach ($amx as $k => $v) {
if (is_object($v)) {
foreach ($v as $_k => $_v) {
if (is_object($_v))
continue;
else if (is_array($_v))
$_v = "Array(" . count($_v) . ")";
$pad = str_repeat(' ', 16 - strlen($_k));
echo "\$amx->$k->$_k$pad => $_v\n";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment