Guest User

Untitled

a guest
Jul 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $theResults = $metaweb->read($myQuery);
  2.  
  3. //$data = json_decode($theResults, true);
  4. //$data = $data['result'];
  5.  
  6. $result = array();
  7. function iterateArray(){
  8.  
  9. }
  10. foreach ($theResults as $key => $person) {
  11. $keyName = str_replace('/', '_', substr($person['id'][0], 1));
  12. $result[$keyName] = array();
  13. $resData = new RecursiveIteratorIterator(new RecursiveArrayIterator($theResults[$key]));
  14. foreach ($resData as $resKey => $resVal)
  15. if(is_array($resVal)){
  16. $result[$keyName][$resKey] = $resVal;
  17. foreach()
  18. } else {
  19. $result[$keyName][$resKey] = $resVal;
  20. }
  21. }
Add Comment
Please, Sign In to add comment