Skip to content

Instantly share code, notes, and snippets.

@seantunwin
Created September 20, 2019 13:22
Show Gist options
  • Save seantunwin/8565322f2e7e7f25b508115c5b8bb0dc to your computer and use it in GitHub Desktop.
Save seantunwin/8565322f2e7e7f25b508115c5b8bb0dc to your computer and use it in GitHub Desktop.
PHP: Convert Deep Nested Object to Associative Array
<?php
// Convert Deep Object to Associative Array
$adata = json_decode(json_encode($odata), true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment